Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [java]

For questions about implementation of Machine Learning and Artificial Intelligence algorithms in the Java programming language.

1
vote
0answers
30 views

How do I write a genetic algorithm to solve the knapsack problem?

I am trying to write a genetic algorithm that generates 100 items, assigning random weights and utilities to them. And then try to pick items how out these 100 items while maximising the utility and ...
2
votes
3answers
69 views

Separating spam and ham emails using the ID3 algorithm

I have a machine learning project in which I have to separate spam and ham emails from a given dataset which has many txt files. Some of them are spam emails and the other ham emails. I have to ...
3
votes
1answer
125 views

How do I apply reinforcement learning to a game with infinitely many actions?

I am trying to figure out how to use a reinforcement learning algorithm, if possible, as a "black box" to play a game. In this game, a player has to avoid flying birds. If he wants to move, he has to ...
1
vote
1answer
99 views

Fitness function in genetic algorithm based on an interval

I am writing an app, where when a ball is shot from a canon it is supposed to land in a hole which is on a given distance. The ball is supposed to land between the distance of the begining of the hole ...
1
vote
0answers
20 views

If there are several computers on a subnet, can training time be reduced by distributing the work across them?

We have multiple computers and the ability to ssh between them. What are options using either Java, C/C++, JavaScript, or Python to distribute our learning tasks? We will be using DCNN, DQN, and LSTM ...
1
vote
1answer
32 views

Huge variations in epoch count for highest generalized accuracy in CNN

I have written my own basic convolutional neural network in Java as a learning exercise. I am using it to analyze the MIT CBCL face database image set. They are a set of 19x19 pixel greyscale images. ...
4
votes
4answers
141 views

Can anyone suggest reference books to start with AI

I would really like to start with artificial intelligence with python or java , but have no idea where to look for reference material,please help me out with it.
0
votes
1answer
72 views

Connect 4 minimax does not make the best move

I'm trying to implement an algorithm that would choose the optimal next move for the game of Connect 4. As I just want to make sure that the basic minimax works correctly, I am actually testing it ...
3
votes
5answers
213 views

AI Beginners Book

Does anyone know a good book to buy for beginners to coding for artificial intelligence? I have done some coding in Java and a little with Python but I would be willing to learn a new language too. ...
4
votes
4answers
1k views

Learning Artificial Intelligence with Python vs. Java

I am a University student taking an Artificial Intelligence class this semester. Our Professor's programming language of choice is Java, but it seems that perhaps with some nudging, he can change it ...
1
vote
3answers
624 views

How and where can I start learning AI if I have considerable knowledge of Java & C++?

I have deep interest in AI and want to start learning how to implement current method. I know about java and C++; are these languages sufficient? I'd appreciate suggestions regarding free online ...