artificial-intelligence

ICA (Independent Component Analysis) fast-fixed point algorithm

前提是你 提交于 2019-12-01 14:58:03
There are several ICA algorithms in use. Such as Fast-ICA algorithm, there is one developed by Jyh-Shing and Roger Jang called a fast-fixed point algorithm. Do you know if there is an implementation or an example using this algorithm, maybe MATLAB? I'm a bit confused. FastICA , which you mention, implements the fast-fixed point algorithm in MATLAB. So that would be your answer then? EDIT: The FastICA code is pretty easy to use. The only input it needs is a mixed signal, which it then tries to unmix. You can also give it additional inputs, like doing PCA, etc.. The main difficulty is in

Genetic algorithm for optimization in game playing agent heuristic evaluation function

余生颓废 提交于 2019-12-01 14:04:44
This is in response to an answer given in this question: How to create a good evaluation function for a game? , particularly by @David (it is the first answer). Background : I am using a genetic algorithm to optimize the hyper parameters in a game playing agent that is using minimax / alpha beta pruning (with iterative deepening). In particular, I would like to optimize the heuristic (evaluation) function parameters using a genetic algorithm. The evaluation function I use is: f(w) = w * num_my_moves - (1-w) * num_opponent_moves The only parameter to optimize is w in [0,1]. Here's how I

Sudoku solver in python using backtracking

女生的网名这么多〃 提交于 2019-12-01 13:29:30
问题 I saw a few sudoku solvers implementations ,but I cant figure out the problem in my code. I have a function sudokusolver which becomes sudoku Board and must return solved sudoku board. def sudokutest(s,i,j,z): # z is the number isiValid = np.logical_or((i+1<1),(i+1>9)); isjValid = np.logical_or((j+1<1),(j+1>9)); iszValid = np.logical_or((z<1),(z>9)); if s.shape!=(9,9): raise(Exception("Sudokumatrix not valid")); if isiValid: raise(Exception("i not valid")); if isjValid: raise(Exception("j not

Need a practical solution for creating pattern database(5-5-5) for 15-Puzzle

我是研究僧i 提交于 2019-12-01 13:20:21
For static pattern database(5-5-5), see this (page 290 and 283) OR there is an explanation below. For What is 15-puzzle? I am creating a static patter database(5-5-5). This code to to fill entries into the first table. I am doing it via the recursive function insertInDB() . The first input to the recursive function is this (actually the input puzzle contains it in 1-D array. For better understanding I have represented it as 2-D below) 1 2 3 4 0 6 0 0 0 0 0 0 0 0 0 0 This is my code : class DBClass { public Connection connection; public ResultSet rs; public PreparedStatement ps1; public

ICA (Independent Component Analysis) fast-fixed point algorithm

心不动则不痛 提交于 2019-12-01 12:24:12
问题 There are several ICA algorithms in use. Such as Fast-ICA algorithm, there is one developed by Jyh-Shing and Roger Jang called a fast-fixed point algorithm. Do you know if there is an implementation or an example using this algorithm, maybe MATLAB? 回答1: I'm a bit confused. FastICA, which you mention, implements the fast-fixed point algorithm in MATLAB. So that would be your answer then? EDIT: The FastICA code is pretty easy to use. The only input it needs is a mixed signal, which it then

How to Identify Recurrent Connections in an Arbitrary Neural Network

僤鯓⒐⒋嵵緔 提交于 2019-12-01 10:41:00
问题 I am trying to implement Neuro-Evolution of Augmenting Topologies in C#. I am running into a problem with recurrent connections. I understand that, for a recurrent connection, the output is basically temporally displaced. http://i.imgur.com/FQYjCLZ.png In the linked image, I show a pretty simple neural network with 2 inputs, 3 hidden nodes , and one output . Without an activation function or transfer function, I think it would be evaluated as: n3[t] = (i1[t]*a + n6[t-1]*e)*d + i2[t]*b*c) * f

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

♀尐吖头ヾ 提交于 2019-12-01 10:30:07
I've been working on learning artificial intelligence and how to code with Python.I was working on a project and I decided to update some packages of Python which were not new to work on then something happened and I can't compile my codes.I deleted Anaconda3 and set it up again but not worked. I've been seeing this problem which I wrote as a topic.If someone helps me,I would be appriciated to get some help. >>> import tensorflow as tf File "C:\Users\AliGalip\Anaconda3Yeni\lib\site-packages\tensorflow\__init__.py", line 24, in <module> from tensorflow.python import pywrap_tensorflow # pylint:

Need a practical solution for creating pattern database(5-5-5) for 15-Puzzle

两盒软妹~` 提交于 2019-12-01 09:50:23
问题 For static pattern database(5-5-5), see this(page 290 and 283) OR there is an explanation below. For What is 15-puzzle? I am creating a static patter database(5-5-5). This code to to fill entries into the first table. I am doing it via the recursive function insertInDB() . The first input to the recursive function is this (actually the input puzzle contains it in 1-D array. For better understanding I have represented it as 2-D below) 1 2 3 4 0 6 0 0 0 0 0 0 0 0 0 0 This is my code : class

How exactly does the dp parameter in the houghcircle function in the opencv library work?

那年仲夏 提交于 2019-12-01 09:41:57
I'm trying to understand the .houghcircles() function and I'm not fully understanding how dp affects the results. Looking up http://docs.opencv.org/modules/imgproc/doc/feature_detection.html?highlight=houghcircles#houghcircles , it says: dp – Inverse ratio of the accumulator resolution to the image resolution. For example, if dp=1 , the accumulator has the same resolution as the input image. If dp=2 , the accumulator has half as big width and height. Say you have a 1000x1000 image. You then set dp to 3, so the accumulator sees only 1/3 the image? Or is it something like, the image size remains

Neural Network Error oscillating with each training example

我与影子孤独终老i 提交于 2019-12-01 08:25:31
问题 I've implemented a back-propagating neural network and trained it on my data. The data alternates between sentences in English & Africaans. The neural network is supposed to identify the language of the input. The structure of the Network is 27 *16 * 2 The input layer has 26 inputs for each letter of the alphabet plus a bias unit. My problem is that the error is thrown violently in opposite directions as each new training example is encountered. As I mentioned, the training examples are read