artificial-intelligence

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

一个人想着一个人 提交于 2019-12-03 06:14:00
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 AI, I'm wondering if a functional language like F# would be a more suitable language than what I currently use which is C# with a lot of Linq. I don't know much about F# which is why I ask here. To illustrate what I try to solve, here's a quick summary of Mahjong: Mahjong plays a bit like Gin Rummy. You have 13 tiles in your hand, and each turn, you draw a tile and discard another one, trying to improve your hand towards a winning Mahjong hand, which consists or

DPLL algorithm definition

点点圈 提交于 2019-12-03 06:06:35
问题 I am having some problems understanding the DPLL algorithm and I was wondering if anyone could explain it to me because I think my understanding is incorrect. The way I understand it is, I take some set of literals and if some every clause is true the model is true but if some clause is false then the model is false. I recursively check the model by looking for a unit clause, if there is one I set the value for that unit clause to make it true, then update the model. Removing all clauses that

Beginning AI programming [closed]

大城市里の小女人 提交于 2019-12-03 06:00:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I am really interested in AI and want to start programming in this field. What are the various areas within AI? e.g. Neural Networks etc. What book can be recommended for a beginner in AI and are there any preferred languages used in the field of AI? 回答1: Classical application areas of AI: Robotics Search

Clustering tree structured data

a 夏天 提交于 2019-12-03 05:52:44
问题 Suppose we are given data in a semi-structured format as a tree. As an example, the tree can be formed as a valid XML document or as a valid JSON document. You could imagine it being a lisp-like S-expression or an (G)Algebraic Data Type in Haskell or Ocaml. We are given a large number of "documents" in the tree structure. Our goal is to cluster documents which are similar. By clustering, we mean a way to divide the documents into j groups, such that elements in each looks like each other. I

What is the difference between Greedy-Search and Uniform-Cost-Search?

☆樱花仙子☆ 提交于 2019-12-03 05:38:31
问题 When searching in a tree, my understanding of uniform cost search is that for a given node A, having child nodes B,C,D with associated costs of (10, 5, 7), my algorithm will choose C, as it has a lower cost. After expanding C, I see nodes E, F, G with costs of (40, 50, 60). It will choose 40, as it has the minimum value from both 3. Now, isn't it just the same as doing a Greedy-Search, where you always choose what seems to be the best action? Also, when defining costs from going from certain

Object Oriented Bayesian Spam Filtering?

余生颓废 提交于 2019-12-03 05:38:26
问题 I was wondering if there is any good and clean object-oriented programming (OOP) implementation of Bayesian filtering for spam and text classification? This is just for learning purposes. 回答1: I definitely recommend Weka which is an Open Source Data Mining Software written in Java: Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from your own Java code. Weka contains tools for data pre-processing,

What does dimensionality reduction mean?

China☆狼群 提交于 2019-12-03 05:24:17
What does dimensionality reduction mean exactly? I searched for its meaning, I just found that it means the transformation of raw data into a more useful form. So what is the benefit of having data in useful form, I mean how can I use it in a practical life (application)? Dimensionality Reduction is about converting data of very high dimensionality into data of much lower dimensionality such that each of the lower dimensions convey much more information. This is typically done while solving machine learning problems to get better features for a classification or regression task. Heres a

Hexagonal Self-Organizing map in Python

爷,独闯天下 提交于 2019-12-03 05:19:58
问题 I am looking for hexagonal self-organizing map on Python. ready module. If one exists. way to plot hexagonal cell algorithms to work with hexagonal cells as array or smth else About : A self-organizing map (SOM) or self-organizing feature map (SOFM) is a type of artificial neural network that is trained using unsupervised learning to produce a low-dimensional (typically two-dimensional) 回答1: I don't have an answer for point 1, but some hints for point 2 and 3. In your context, you're not

Hill climbing algorithm simple example

点点圈 提交于 2019-12-03 05:14:07
I am a little confused with Hill Climbing algorithm. I want to "run" the algorithm until i found the first solution in that tree ( "a" is initial and h and k are final states ) and it says that the numbers near the states are the heuristic values. Here's the tree: My question : i am trying to run hill climbing on the tree, so ok we start a-> f-> g and then what ??finish(without result) , but I read that hill climbing can't go back and make a new choice(example j or e) ? Is this right ? If i can go back then how ? i mean where we change our initial choice example we choose e instead of g or j

Incorporating user feedback in a ML model

故事扮演 提交于 2019-12-03 05:13:37
问题 I have developed a ML model for a classification (0/1) NLP task and deployed it in production environment. The prediction of the model is displayed to users, and the users have the option to give a feedback (if the prediction was right/wrong). How can I continuously incorporate this feedback in my model ? From a UX stand point you dont want a user to correct/teach the system more than twice/thrice for a specific input, system shld learn fast i.e. so the feedback shld be incorporated "fast".