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]

Use for questions related to AI implementation in the Python language

0
votes
0answers
10 views

Getting NaN output on test predictions, first attempt at building a model

I have been successfully following the tutorial examples on the Tensor Flow site and decided to implement my first model based on the Regression example of the Boston Housing data set. I have split ...
-1
votes
2answers
73 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
59 views

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

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

How to obtain activations of all layers for VGG in PyTorch or TensorFlow?

I need all activation layer outputs for CNN's for VGG network for any given dataset. How can these be obtained in PyTorch or TensorFlow?
0
votes
1answer
20 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. <...
0
votes
0answers
16 views

IndexError: index 804 is out of bounds for axis 0 with size 800 [migrated]

i installed a self driving car project from superdatascience site , when i open the map using terminal after a while the map window close up or it closes directly after i maximize the map window and ...
0
votes
0answers
9 views

Python clustering implementation for mix of categorical and numerical variables

Are there any Python implementations for clustering tasks which include data of both categorical and numerical nature? I could not find anything except for the Gower's distance which seems to work ...
2
votes
1answer
19 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 ...
0
votes
0answers
41 views

Problem installing autokeras and elephas using Anaconda and pip

I am trying to install autokeras and elephas using Anaconda and pip, so that it can be used in a Jupyter notebook. However, using simply pip install autokeras ...
-1
votes
0answers
29 views

model.predict in Keras, Python error [migrated]

I trained a model in Keras with input dimension 15 and output dimension 1. Then I tried to predict the output for a single input np.array, which I chose to be a toy example np.arange(15). However, the ...
2
votes
0answers
18 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
49 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
38 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
36 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 ...
0
votes
0answers
16 views

Algorithms for Automatic Question Paper Generator system

how I can select questions from the database randomly using AI Techniques? questions have the following attributes : 1: difficulty 2: type 3: subject
2
votes
1answer
38 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
0answers
45 views

Extract particular pattern from the given text/paragraph using machine or deep learning

If there is given a one paragraph as a input and it extract a string from the paragraph,within a predefined range (i.e. a string that starts with three letters that a always fixed and ends with five ...
0
votes
1answer
31 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. ...
2
votes
2answers
109 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
94 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
38 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
35 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
55 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 ...
1
vote
0answers
32 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
28 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
66 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
58 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, ...
4
votes
2answers
206 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 ...
0
votes
0answers
39 views

Is my cart-pole agent behavior expected under these circumstances?

I'm trying to solve the cart-pole problem from Open-AI. For this task I'm using a one step actor-critic algorithm. The purpose of this implementation is mainly to study. For this reason I'm using a ...
1
vote
1answer
73 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
33 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? Disclaimer: I'm not sure if this is technically a computer science or AI problem. For the below example, how would I ...
2
votes
0answers
67 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
74 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
116 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
53 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
37 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
84 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
86 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
70 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 ...
2
votes
1answer
29 views

Recognising common short forms of appliances used daily

I'm working on a chatbot for homes and would need to understand the appliance the user is talking about. Suppose the command is: Turn on the air conditioner. and another variant could be Turn on the ...
1
vote
0answers
31 views

Generating time series for doing time-series forecasting with LSTM

I have a .db file with columns as described below. This data has been collected by a software which monitors the file usage in a filesystem or in other words generates metadata about all the files in ...
1
vote
0answers
17 views

Python:Collaborative Filtering-How to find correlation using multiple variable

I am working in anaconda/python and I have a datase which contains userId ,itemId and 2 more attribute and timestamp for purchase. ...
3
votes
5answers
184 views

AI Beginners Book

Does anyone know a good book to buy for beginners to coding for artificial intelligence? I have done some coding in Java and a little with Python but I would be willing to learn a new language too. ...
3
votes
1answer
83 views

Machine Learning - Is selected models combination good?

I've selected more than 10 discriminative (Classification) models, each wrapped with a BaggingClassifier object, optimized with a GridSearchCV, and all of them placed within a VotingClassifier object. ...
2
votes
1answer
37 views

If use the weights from previous iteration of a k-fold cross validation to seed a neural network classifier would I be overfitting?

As is done traditionally, I used k-fold cross validation to select and optimize the hyper parameters of my neural network classifier. When it was time to store the final model for future predictions, ...
0
votes
0answers
49 views

Listen, Attend and Spell

I was reading the Listen, Attend and Spell paper and did not understand some terms/concepts. I need help with the following: what is pyramid Bidirectional LSTM and how it helps to reduce the time ...
1
vote
0answers
43 views

Implementing deep learning papers for the beiginners [closed]

How did you implement your first ever model from a deep learning paper? Please share your experience. It will be useful for beginners looking into getting into implementing code for papers. A step by ...
1
vote
2answers
1k views

Complete deep learning text classification with Python example

I would like to know if there is a complete text classification with deep learning example, from text file, csv, or other format, to classified output text file, csv, or other. I have seen tens of ...
0
votes
0answers
94 views

Speaker Diarization with LSTM paper

I am complete beginner in deep learning. I have a background in python. I would like to implement the following paper: https://arxiv.org/pdf/1710.10468.pdf. I do not understand the statistics behind ...