artificial-intelligence

How to train a model in tensorflow using java

僤鯓⒐⒋嵵緔 提交于 2020-01-01 10:43:05
问题 I am trying to find a tutorial which can help in train a image classification model in java. I should work same way we train model in python. 回答1: Current version of Tensorflow (1.3) java API does not allow to train models, but allow to use pre-trained models only. 回答2: For that, we can use the JavaCPP Presets for TensorFlow, which map the C and C++ APIs: https://github.com/bytedeco/javacpp-presets/tree/master/tensorflow 来源: https://stackoverflow.com/questions/46030577/how-to-train-a-model-in

Markov Model descision process in Java

雨燕双飞 提交于 2020-01-01 09:39:13
问题 I'm writing an assisted learning algorithm in Java. I've run into a mathematical problem that I can probably solve, but because the processing will be heavy I need an optimum solution. That being said, if anyone knows a optimized library that will be totally awesome, but the language is Java so that will need to be taken into consideration. The idea is fairly simple: Objects will store combination of variables such as ABDC, ACDE, DE, AE. The max number of combination will be based on how many

Why do safety requirements like to discourage use of AI?

依然范特西╮ 提交于 2020-01-01 06:36:08
问题 Seems that requirements on safety do not seem to like systems that use AI for safety-related requirements (particularly where large potential risks of destruction/death are involved). Can anyone suggest why ? I always thought that, provided you program your logic properly, the more intelligence you put in an algorithm, the more likely this algorithm is capable of preventing a dangerous situation. Are things different in practice? 回答1: Most AI algorithms are fuzzy -- typically learning as they

Why do safety requirements like to discourage use of AI?

你离开我真会死。 提交于 2020-01-01 06:36:07
问题 Seems that requirements on safety do not seem to like systems that use AI for safety-related requirements (particularly where large potential risks of destruction/death are involved). Can anyone suggest why ? I always thought that, provided you program your logic properly, the more intelligence you put in an algorithm, the more likely this algorithm is capable of preventing a dangerous situation. Are things different in practice? 回答1: Most AI algorithms are fuzzy -- typically learning as they

Is F# a good language for card game AI? [closed]

一笑奈何 提交于 2020-01-01 02:39:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm writing a Mahjong Game in C# (the Chinese traditional game, not the solitaire kind). While writing the code for the bot player's

Continuous vs Discrete artificial neural networks

喜欢而已 提交于 2019-12-31 13:22:06
问题 I realize that this is probably a very niche question, but has anyone had experience with working with continuous neural networks? I'm specifically interested in what a continuous neural network may be useful for vs what you normally use discrete neural networks for. For clarity I will clear up what I mean by continuous neural network as I suppose it can be interpreted to mean different things. I do not mean that the activation function is continuous. Rather I allude to the idea of a

Support Vector Machine or Artificial Neural Network for text processing?

与世无争的帅哥 提交于 2019-12-31 12:56:45
问题 We need to decide between Support Vector Machines and Fast Artificial Neural Network for some text processing project. It includes Contextual Spelling Correction and then tagging the text to certain phrases and their synonyms. Which will be the right approach? Or is there an alternate to both of these... Something more appropriate than FANN as well as SVM? 回答1: I think you'll get a competitive results from both of the algorithms, so you should aggregate the results... think about ensemble

Computer AI algorithm to write sentences?

北城余情 提交于 2019-12-31 08:13:52
问题 I am searching for information on algorithms to process text sentences or to follow a structure when creating sentences that are valid in a normal human language such as English. I would like to know if there are projects working in this field that I can go learn from or start using. For example, if I gave a program a noun, provided it with a thesaurus (for related words) and part-of-speech (so it understood where each word belonged in a sentence) - could it create a random, valid sentence? I

Cost function always returning zero for a binary classification in tensorflow

左心房为你撑大大i 提交于 2019-12-31 01:55:10
问题 I have written the following binary classification program in tensorflow that is buggy. The cost is returning to be zero all the time no matter what the input is. I am trying to debug a larger program which is not learning anything from the data. I have narrowed down at least one bug to the cost function always returning zero. The given program is using some random inputs and is having the same problem. self.X_train and self.y_train is originally supposed to read from files and the function

how do i get coordinates of image shown in opencv

时光毁灭记忆、已成空白 提交于 2019-12-31 01:25:26
问题 Sorry but title doesnt really make sense i am trying to make an ai that clicks on the ball to make it bounce. for context heres a picture of the application in the game when you click the ball it goes up and then comes back down and the aim of the game is to keep it up. i have writen some code that turns the image into a mask with opencv, heres a picture of the result what i now need to do is find the location of the ball in pixels/coordinates so i can make the mouse move to it and click it.