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 [python]

For questions related to AI implementation in the Python language

0
votes
0answers
7 views

NEAT implementation does not converge well

I have tried to implement my own version of NEAT using the original paper but my version it does not converge well. I am not sure if I have implemented NEAT incorrectly or if my parameters are not ...
0
votes
0answers
14 views

tensorflow: is there a way to specify XLA_GPU with tensorflow? [migrated]

following code is used to specify device on which tf node is running on ...
5
votes
1answer
69 views

2 Player Games in OpenAI Retro

I have been using OpenAI Retro for awhile, and I wanted to experiment with two player games. By two player games, I mean co-op games like "Tennis-Atari2600" or even Pong, where 2 agents are present in ...
0
votes
0answers
11 views

Loading multiple trained models for use in multi-agent environment

I have an agent that will play in a multi-agent environment, and I'd like that agent to play against other agents that have been previously trained. The model for each agent was saved using ...
1
vote
0answers
21 views

Selu and how to implement it?

I just came accros the "Selu" function. It looks promising, especially with the header "self normalizing neural network", since I have some serious with exploding gradient within my network with (...
0
votes
0answers
31 views

How do I apply batch normalization to my algorithm?

I am working lately on batch normalization for the last couple of days, but I just can't seem to solve it on how to apply it. So, to give the full code to you, I will just send the implementation. ...
-2
votes
0answers
9 views

how to reshape xtrain array and what about input shape? [migrated]

from keras.datasets import mnist from keras.layers import Activation,Dense,Convolution2D from keras.models import save_model,load_model,Sequential from keras.callbacks import TensorBoard import ...
0
votes
0answers
22 views

Isolate the speech of two people in an audio record with two people only

I would like to find a way to isolate the speech of each of the people in an audio record so I can create a file of that form : ...
0
votes
1answer
29 views

Where can I find an implementation of the wake-sleep algorithm?

I'm looking to build from scratch an implementation of the wake-sleep algorithm also known as an unsupervised neural network. I plan on doing this in Python in order to better understand how it works. ...
0
votes
0answers
11 views

How to interpret the generated ACF and PACF plot in time-series problem?

I recently started working onto Time-Series problem and gathered insights onto the working and the logic behind. However I'm still not clear that how ACF and PACF plots help us in building a model? ...
0
votes
0answers
20 views

How to install XGBOOST, Lightgbm, catboost without connecting to the Internet

I want to install some libraries such as xgboost, lightgbm, and catboost without connecting to the Internet in Anaconda because of some security issues. Can anybody help me how to do this? Moreover, ...
0
votes
1answer
22 views

Python Packages for Recent Optimization Methods

I want to try and compare different optimization methods in some datasets. I know that in scikit-learn there are some corresponding functions for grid and random search optimizations. However, I also ...
1
vote
2answers
96 views

Is there more than one Q-matrix update formula?

I asked a question a while ago here and since then I've been solving the issues within my code but I have just one question... This is the formula for updating the Q-Matrix in Q-Learning: $$Q(s_t, ...
0
votes
0answers
51 views

Using AI to guess a mathematical pattern of certain polynomials in four variables: practical challenge

I'd like to use machine learning to guess a mathematical pattern: the input are certain polynomials in four variables $q_1,q_2,q_3,q_4$, the output can be zero or one. Allowed polynomials are such ...
-1
votes
0answers
17 views

How can I train a neural network to predict what cars are going to be liked from an auction? PYTHON

so I'm trying to make a program where I can predict what cars from an auction are going to be liked by a specific client based on the previous cars he has bought. I am coding this program in python. ...
2
votes
1answer
50 views

Text classification task chatbot

I'm building a customer assistant chatbot in Python, so a text classification task, and I have available more or less 7 hundred sentences of average length 15 words (unbalanced class). What do you ...
1
vote
0answers
18 views

GPFlow: Gaussian Process Uncertainty Quantification

I trained some Gaussian process model with the Python library GPFlow on a dataset consisting of $(X, Y)$, inputs and outputs, in a regression setting. This model gives me pretty good predictions in ...
2
votes
0answers
27 views

My naive (ha!) Gaussian Naive Bayes classifier is too slow

I am trying to build a film review classifier where I determine if a given review is positive or negative (w/ Python). I'm trying to avoid any other ML libraries so that I can better understand the ...
1
vote
3answers
55 views

predict customer visit

Suppose we have a data set consists of columns TransactionId, CardNo, TransactionDate then how can we calculate the customer purchase interval (means if customer A purchased on Jan 1st and after ...
2
votes
1answer
23 views

Testing, Validation Percentage & Test, Validation Batch Size Difference?

I'm doing transfer learning using Inception on Tensorflow. The code that I used for training is https://raw.githubusercontent.com/tensorflow/hub/master/examples/image_retraining/retrain.py If you ...
2
votes
1answer
70 views

DQN stuck at suboptimal policy in Atari Pong task

I am in the process of implementing the DQN model from scratch in PyTorch with the target environment of Atari Pong. After a while of tweaking hyper-parameters, I cannot seem to get the model to ...
1
vote
0answers
25 views

Tensorflow : Inception V3 Transfer Learning Parameter Tuning

Sorry if my question is at the wrong place, I'm new in this community. So, I have dataset with total of 1 million images (augmented) that separated in 28 classes. I followed this tutorial https://www....
2
votes
0answers
13 views

Property based clustering

I've got a challenge that feels like it should be solvable using some kind of clustering algo, but I can't get my head around how I can change the perspective such that it is solvable for such an algo....
1
vote
2answers
72 views

How to use RNN With Attention Mechanism on Non Textual Data?

Recurrent Neural Networks (RNN) With Attention Mechanism is generally used for Machine Translation and Natural Language Processing. In Python, implementation of RNN With Attention Mechanism is ...
0
votes
2answers
44 views

Scaling and standardizing

I am trying to generate a model that uses several physico-chemical properties of a molecule (incl. number of atoms, number of rings, volume, etc.) to predict a numeric value Y. I would like to use PLS ...
1
vote
2answers
61 views

What is batch / batch size in neural networks?

I have some problems with understanding of batch concept and batch size. I messed something up. First i start it consider based on convolutional neural network I heard two versions: 1. When batch ...
-2
votes
1answer
147 views

RNN LSTM not converging with Adam

I am trying to train a RNN with text from wikipedia but I having having trouble getting the RNN to converge. I have tried increasing the batch size but it doesn't seem to be helping. All data is one ...
2
votes
0answers
159 views

Implementing AI/ML for the card game “Cheat”

Background info In Python, I've implemented a rudimentary engine to play "Cheat", supporting both bots and a human or only bots. When only bots are playing, the game is simulated. When placing cards,...
0
votes
1answer
86 views

Label arrangement for custom Keras image generator

I am trying to generate 90 and 270 degrees rotated versions of my sample images on the fly during training. I found an example and modifying it. But I am confused about what should be the order? For ...
1
vote
1answer
19 views

Using an 'operation ID' as a neural network input

Sorry if this is basic or covered elsewhere, I am just starting here and I wasn't able to find an answer, but I might have not been searching for the right thing. So: I am training a neural network ...
1
vote
1answer
29 views

How to solve the AttributeError: 'Ssd' object has no attribute 'freeze_batchnorm' [closed]

I use a modified training script for modeling images with Tensorflow/Keras/Mobilenet_V2. After a few errors that I could solve I now get the following error: ...
4
votes
2answers
55 views

How to know whether the object is moving after it is being detected?

If my algorithm detects the type of object, how should I know if that object is moving or not? Suppose a person carrying an umbrella. How to know that the umbrella is moving? I am working on a ...
0
votes
1answer
203 views

Why we use LIFO(Last in First Out) queue in depth first search?

As, we use FIFO(First In First Out) queue in breadth search algorithm but in depth first search we use LIFO.Why we use LIFO instead of FIFO in depth first search?
-1
votes
2answers
95 views

What are the prerequisites for starting out in Deep Learning?

I am new in artificial intelligence and want to getting start with deep learning in Python. I know about the basics of Python. What should i have to learn more?
1
vote
0answers
65 views

Is there any other language powerful than python in artificial intelligence? [closed]

Is there any good langauge rather than python on artificiall intelligence so that there can be even more scope in AI.
0
votes
1answer
104 views

How to add external training in chatterbot?

I created a very simple bot to learn how to use chatterbot. This library already comes with a training, but I wanted extra training with an import of a corpus in Portuguese that I found in github. <...
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 ...
5
votes
1answer
62 views

Does it make sense to apply softmax on top of relu?

While working through some example from Github I've found this network (it's for FashionMNIST but it doesn't really matter). Pytorch forward method (my query in upper case comments with regards to ...
4
votes
1answer
53 views

What are the ways to calculate the error rate of a deep Convolutional Neural Network, when the network produces different results using the same data?

I am new to the object recognition community. Here I am asking about the broadly accepted ways to calculate the error rate of a deep CNN when the network produces different results using the same data....
1
vote
1answer
170 views

Can we combine multiple different neural networks in one?

I want to make a kind of robotic brain i.e. a big neural network, which includes NLP model (for understanding human voice) , real-time object recognition (so it can identify particular object), face ...
2
votes
1answer
53 views

How to find the category of a technical text on a surface-semantic-level

There are some predefined categories( Overview, Data Architecture,Technical Details, Applications etc). The requirement is to classify the input text of paragraphs into their resp. category. I cant ...
1
vote
1answer
71 views

Using a DQN with a variable amount of Valid Moves per turn for a Board Game

I have created a game on an 8x8 grid and there are 4 pieces which can move essentially like checkers pieces (Forward left or Forward right only). I have implemented a DQN in order to pull this off. ...
3
votes
2answers
320 views

Creating a self learning Mario Kart game AI?

I will be undertaking a project over the next year to create a self learning AI to play a racing game, currently the game will be Mario Kart 64. I have a few questions which will hopefully help me ...
4
votes
4answers
155 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.
-1
votes
1answer
61 views

How to visualize the time complexity for training a Neural Network

I want to compare the time complexity of two deep neural networks, but I have no idea how to go about it. How do I graphically achieve that with respect to the number of iterations, accuracy or any ...
3
votes
1answer
43 views

Python API for publicly available datasets

In my daily machine learning / deep learning workflow, I often want to interact with a dataset in my code. Specifically, I would like to be able to load some module / package which can make sure that ...
2
votes
1answer
64 views

Why would giving my AI more data make it perform worse?

So I trained an AI to generate shakespeare, which it did somewhat well. I used this 10,000 character sample. Next I tried to get it to generate limericks using these 100,000 limericks. It generated ...
1
vote
1answer
92 views

How to find partial derivative of softmax w.r.t logits in python

i have trouble implementing back propogation for multi class classification of CIFAR10 dataset My neural network has 2 layers forward propagation X -> L1 -> L2 weights W are initialized as random ...
2
votes
0answers
46 views

Mapping Actions to the Output Layer in Keras Model for a Board Game

I have created a game based on this game here. I am attempting to use Deep Q Learning to do this, and this is my first foray into Neural networks (please be gentle!!) I am trying to create a NN that ...
2
votes
0answers
89 views

Convolutional Layers on a hexagonal grid in Keras

Keras' convolutional and deconvolutional layers are designed for square grids. Is there was a way to adapt them for use in hexagonal grids? For example, if we were using axial coordinates, the input ...