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
1answer
22 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
17 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 ...
0
votes
0answers
11 views

Adaptive Random Forest in python for classification [on hold]

For my classification problem, since I want my model to predict labels of stream data and features (or just feature importance) can change, I thought of using an adaptive random forest like the one ...
0
votes
0answers
19 views

transformer.set_is_flow in sequence_input_layer.py [on hold]

In lisa-caffe-lstm example for activity recognition, the python data layer file 'sequence_input_layer.py' is used: https://github.com/LisaAnne/lisa-caffe-public/blob/lstm_video_deploy/examples/...
0
votes
0answers
19 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 ...
0
votes
1answer
49 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
46 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
46 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
30 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 ...
0
votes
1answer
52 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
26 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 ...
-1
votes
0answers
32 views

Convert database to '0' and '1' in Neural Network with python

This is my first "Neural Network" I don't know if it is okey but I think it works. The problem is I have my list of list with the data and I need to convert it to the '0' and '1' and I don't know how ...
1
vote
0answers
51 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
66 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
110 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
37 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
34 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
83 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
56 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-- ...
2
votes
1answer
59 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
25 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
19 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
161 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
82 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
35 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
35 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
41 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
233 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
74 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 ...
2
votes
1answer
48 views

Implementing AI/ML in customer service

I am working on a task where I am required to automate the customer service request channel. The process is quite typical. A customer queries about a product via email, the person on the front channel ...
1
vote
1answer
50 views

Scikit learn: Decision tree data meaning

This is more of a technical question rather than a practical one. I've exported a decision tree made with python/scikit learn and would like to know what the "value" field of each leaf corresponds to....
2
votes
1answer
288 views

Detecting license plate using tensorflow

I'm currently working on license plate recognition. My system consist of 2 stage: (1) License Plate region extraction & (2) License Plate region recognition. I'm doing (1) with Raspberry pi 3 ...
1
vote
2answers
76 views

How to teach a Model-based reflex agent for doing some task using machine learning methods?

I would like to know how to teach an agent for performing prediction of the severity of disease and also for alerting patients using machine learning methods. I found the Model-based reflex agent ...
0
votes
1answer
76 views

How to decrease accuracy from 99% to 80%~85% using keras for training a model

How do I decrease the accuracy value when training a model using Keras; which parameters can I change to decrease the value? My objective is not to actually decrease it, but just to know which ...
1
vote
0answers
82 views

How To Improve This Sentiment Analysis Model

A.I Community, this is my first post on here I am currently reading, learning and designing models. At the moment I'm working on this sentiment analysis tool; from what I gather sentiment analysis can ...
0
votes
1answer
39 views

Can we code rules for an agent in python language other than predicate calculus?

I have a medical dataset with 14000 rows dataset with 900 attributes. I have to predict disease severity using that. I would like to know whether we can write rules in python language for training an ...
2
votes
0answers
70 views

Supervised K-means clustering doesn't appear to work

I have a data set containing actions taken by customers (view a product, add a product to cart, purchase product), the product bought (if any) and times of said actions and I am attempting to use K-...
3
votes
2answers
96 views

Can agent based machine learning achieved with any ML algorithms other than neural network?

I would like to know other tha neural network, is there any ML technique for agent based ML. If so how to train an agent with some predefined rules? Can we use python programming for representing ...
4
votes
1answer
165 views

Meaning of evaluation metrics in Tensorflow

I am pretty much a beginner in Tensorflow and simply follow a tutorial. There is no problem with my code, but I have a question regarding the output ...
2
votes
1answer
94 views

Mountain car problem with images - not converging

I'm trying to find the optimal policy for the mountain car problem using deep Q learning with images as input, however, I cannot find a way to get my Q function to give me good solutions (I followed ...
1
vote
0answers
79 views

How to set Stride,Filter size in Tensorflow for 1-D signals?

I am trying to implement CNN using tensorflow on temporal accelrometer signal. I have signal values segmented on every 10ms (200 samples). I want to perform 1-D convolution (...
4
votes
4answers
345 views

Learning Artificial Intelligence with Python vs. Java

I am a University student taking an Artificial Intelligence class this semester. Our Professor's programming language of choice is Java, but it seems that perhaps with some nudging, he can change it ...
1
vote
1answer
43 views

How to refine K-means clustering on a data set?

I'm working with a data set where the data is stored in a string such as AxByCyA where A, B ...
0
votes
0answers
37 views

Why aren't neural network classifiers incentivised to just display the average of training labels?

I've been following 3Blue1Brown's neural network tutorial series and have been working on making a neural network classifier based on what I've learned. After writing all the code and debugging, I ...
3
votes
1answer
95 views

Over- and underestimations of the lowest and highest values in LSTM network

I'm training a LSTM network with multiple inputs and several LSTM layers in order to setup a time series gap filling procedure. The LSTM is trained bidirectionally with "tanh" activation on the ...
2
votes
1answer
234 views

Training AI to play NES/SNES games on NN python

I am currently getting into Deep Learning and would like to set up an environment for training an Artificial Neural Network or NEAT to play simple video games on NES (Mario etc.) and SNES ( Donkey ...
3
votes
3answers
436 views

Why does C++ seem less widely used in AI?

I just want to know why do Machine Learning engineers and AI programmers use languages like python to perform AI task and not C++ even though C++ is technically a more powerful language than python.
1
vote
1answer
62 views

Neural network returns similar output

I was following Daniel Shiffman's tutorials on how to write your own neural network from scratch. I specifically looked into his videos and the code he provided in here. I rewrote his code in Python, ...
2
votes
1answer
168 views

How do you handle multiple categorical values in a single column for wide_deep model in tensorflow?

To start, let me just say that I am very new to tensorflow and Machine Learning in general. But, as part of my learning project I am trying to adapt the tensorflow wide and deep model to generate ...