Stack Exchange Network

Stack Exchange network consists of 174 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

1
vote
0answers
8 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
votes
0answers
20 views

Set model weights to preset tensor with torch

I am attempting to train a torch model with neuro-evolution. I cannot seem to be able to set weights of a model to a preset tensor. I am able to: Assign weights based on random values, ...
0
votes
0answers
16 views

Compute the loss function of a GAN model

I’m new with pytorch (and also with GAN), and I need to compute the loss functions for both the discriminator and the generator. ...
1
vote
2answers
40 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
1answer
23 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 ...
0
votes
0answers
10 views

Sklearn GridSearch with pre-training

I'm making a Sklearn Pipeline with a parameter optimization made by the GridSearchCV. The ...
0
votes
0answers
15 views

Prediction of cnn class with 1 image drawn by user

I'm still new at learning about convolutional neural networks and I was looking into building one from scratch using python. I also have this idea in my head, but I am unsure how to go about it. I ...
0
votes
0answers
17 views

Python LSTM RNN Back propagation doesn't pass gradient check

I am trying to code a Recurrent neural network in python and I am having trouble getting the back propagation step to correctly calculate the gradients as when I check it using gradient checking the ...
-1
votes
0answers
14 views

How to load and use my pre-trained model weights

I trained a classifier based on VGG16 network. I imported VGG16 as VGG16(weights='imagenet', include_top=False, input_shape=(image_size, image_size, 3)), and ...
1
vote
2answers
35 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
77 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 ...
0
votes
0answers
16 views

What is the difference between dataframe.iloc[:;:] and datafrane.iloc[:,:] .values [migrated]

Pandas dataframe.iloc[].values nad dataframe.iloc[]
-1
votes
0answers
31 views

How to get the image inside a bounding box?

I have a function which detects the person in a video. I want to get just image inside the bounding box. I would appreciate any help. I have tried this. This is not a complete code. Just a snippet of ...
2
votes
0answers
96 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
42 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
15 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
16 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
1answer
42 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
58 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
87 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
64 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
36 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. <...
2
votes
1answer
41 views

What is the meaning of the actions, in `gym` from OpenAI?

In a gym environment the action space is often a discrete space where each action is labeled by an integer. I cannot find a way to figure out the correspondence ...
2
votes
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
57 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
43 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
81 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
48 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 ...
0
votes
1answer
55 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
201 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
119 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
51 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
39 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
60 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
62 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
38 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 ...
1
vote
0answers
50 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 ...
1
vote
1answer
95 views

How to make a chatbot with NLP and Neural

I would like to have a chat to talk on a personal plan enough to pass the Turing test. I got to study some natural language processing (NLP) but some that usually hide a lot of mechanical, so I think ...
1
vote
3answers
77 views

Can genetic algorithms be used to learn to play multiple games of the same type?

Is it possible for a genetic algorithm + Neural Network that is used to learn to play one game such as a platform game able to be applied to another different game of the same genre. So for example, ...
5
votes
4answers
497 views

Can neuro-evolution of augmenting topologies (NEAT) neural networks be built in TensorFlow?

I am making a machine learning program for time series data analysis and using NEAT could help the work. I started to learn TensorFlow not long ago but it seems that the computational graphs in ...
1
vote
1answer
86 views

Occupation detection using Face API

For my university project, I am planning to build a face recognition/ occupation recognition programme. However, rather than using the existing Haar cascade(for age and gender) I am planning to use ...
3
votes
1answer
66 views

How to parse conjunctions in Natural Language Processing in Python

Is there an accepted way in NLP to parse conjunctions (and/or) in a sentence? By following the example below; how would I parse, ...
2
votes
0answers
90 views

How many episodes does it take for a vanilla one-step actor-critic agent to master the OpenAI BipedalWalker-v2 problem?

I'm trying to solve the OpenAI BipedalWalker-v2 by using a one-step actor-critic agent. I'm implementing the solution using python and tensorflow. I'm following this pseudo-code taken from the book ...
0
votes
2answers
84 views

How do I create a python database for AI? [closed]

So, a friend and I are creating an Ai using python. Well one problem we have came across is creating a database for the Ai. I am asking, in general, how would I create a database for AI?
0
votes
2answers
118 views

How do I change the values of a neural net

I'm trying to have a go at building a neural net, but I can't seem to figure out how to optimise the connections. I've tried to have a look online and it came up with "backpropagation". I looked ...
-1
votes
1answer
109 views

Simple Object Detection

I want to create a simple Object detection tool. So basically an Image will be provided to the tool and from that, it has to detect the number of objects. For eg An image of a dining table which ...
3
votes
1answer
41 views

K-means using only certain dataframe columns [closed]

I'm using the k-means algorithm from the scikit-learn library, and the values I want to cluster are in a pandas dataframe with 3 columns: ID ...
4
votes
1answer
89 views

Algorithm For Making Balanced Weapons In A Game?

I am trying to make balanced weapon pairs. So there are five stats per weapon, and I am simulating a number of combats (1000) with different stats randomized, and counting the win, lose, and draw of ...
3
votes
1answer
139 views

Optimizing Max Pooling Algorithm

The below code is a max pooling algorithm being used in a CNN. The issue I've been facing is that it is offaly slow given a high number of feature maps. The reason for its slowness is quite obvious-- ...
3
votes
1answer
73 views

Disentangled VAE doesn't reconstruct accurate grids

I am trying to implement the disentangled VAE model according to this link. I want to understand the architecture of this model in order to customize it later. As infrastructure, I have a linux kernel ...