Book Image

Hands-On Artificial Intelligence with Java for Beginners

By : Nisheeth Joshi
Book Image

Hands-On Artificial Intelligence with Java for Beginners

By: Nisheeth Joshi

Overview of this book

Artificial intelligence (AI) is increasingly in demand as well as relevant in the modern world, where everything is driven by technology and data. AI can be used for automating systems or processes to carry out complex tasks and functions in order to achieve optimal performance and productivity. Hands-On Artificial Intelligence with Java for Beginners begins by introducing you to AI concepts and algorithms. You will learn about various Java-based libraries and frameworks that can be used in implementing AI to build smart applications. In addition to this, the book teaches you how to implement easy to complex AI tasks, such as genetic programming, heuristic searches, reinforcement learning, neural networks, and segmentation, all with a practical approach. By the end of this book, you will not only have a solid grasp of AI concepts, but you'll also be able to build your own smart applications for multiple domains.
Table of Contents (14 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Preface

Artificial intelligence, which is becoming increasingly relevant in the modern world, where everything is driven by technology and data, is the process of automating any system or process to carry out complex tasks and functions automatically in order to achieve optimal productivity.

Hands-On Artificial Intelligence with Java for Beginners explains the basics of AI using popular Java-based libraries and frameworks to build your smart applications.

Who this book is for

Hands-On Artificial Intelligence with Java for Beginners is for Java developers who want to learn the fundamentals of artificial intelligence and extend their programming knowledge to build smarter applications.

What this book covers

Chapter 1, Introduction to Artificial Intelligence and Java, introduces artificial intelligence. It gives a very brief introduction to artificial intelligence, and how we can install and work with Java.

Chapter 2, Exploring Search Algorithms, will introduces two basic search techniques—Dijkstra's algorithm and the A* algorithm.

Chapter 3, AI Games and Rule-Based System, discusses game playing, how game playing works, how we can implement game playing in Java, what rule-based systems are, how we can implement a rule-based system, and how we can perform interfacing with rule-based systems in Java. We'll implement a rule-based system in Prolog and we'll perform the interfacing of Prolog with Java.

Chapter 4, Interfacing with Weka, discusses how to interact with Weka and how to perform interfacing with Weka, so the chapter covers how to download Weka and how to work with datasets.

Chapter 5, Handling Attributes, explains how to handle attributes while developing different kinds of classifiers and clusters. We'll also learn about different techniques for filtering attributes.

Chapter 6, Supervised Learning, shows how supervised models are trained, how we can develop a classifier, how we can perform evaluation on a classifier, and how we can make predictions on a classifier.

Chapter 7, Semi-Supervised and Unsupervised Learning, explains the differences between a supervised learning model and a semi-supervised learning model, and we'll implement a semi-supervised model.

To get the most out of this book

The prerequisites for this book are that you should have an understanding of AI, you should have taken a course on AI, and you should have a working knowledge of Java.

This book has the following software requirements:

  • NetBeans 8.2
  • Weka 3.8
  • SWI-Prolog 7.2-7.6

This course has been tested on the following system configurations:

  • OS: Windows 7, Windows 10, macOS, Ubuntu Linux 16.04 LTS
  • Processor: Dual core 3.0 GHz
  • Memory: 4 GB
  • Hard disk space: 200 MB

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-On-Artificial-Intelligence-with-Java-for-Beginners. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The filter that we will apply will be an unsupervised filter from the unsupervised.attribute package."

A block of code is set as follows:

Remove rmv = new Remove();
rmv.setOptions(op);

Any command-line input or output is written as follows:

?- grandfather(X, Y).

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Go to Libraries | Add JAR/Folder and provide the location of the junit.jar file."

 

 

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email [email protected] and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected].

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.