Questions tagged [python]

For questions related to AI implementation in the Python language

Filter by
Sorted by
Tagged with
4
votes
1answer
291 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 ...
2
votes
1answer
282 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 ...
2
votes
3answers
378 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, ...
7
votes
3answers
3k 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
134 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
365 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
237 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
152 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?
-1
votes
2answers
150 views

How do I change the values of a neural net [closed]

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
284 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
136 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
117 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
979 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
92 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
44 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
158 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
21 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. ...
6
votes
6answers
419 views

AI beginners books for coding

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
90 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
62 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, ...
1
vote
0answers
57 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
6k 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 ...
3
votes
1answer
71 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
163 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....
3
votes
1answer
1k 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
312 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
405 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 ...
6
votes
3answers
1k views

TensorFlow batch learning

I used the example at - https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/5_DataManagement/tensorflow_dataset_api.py - to create my own classification model. I used different ...
1
vote
0answers
223 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
54 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 ...
4
votes
0answers
102 views

Supervised K-means clustering doesn't appear to work

I have a data set containing actions taken by customers (e.g., view a product, add a product to cart, purchase product), the product bought (if any) and times of said actions. I am attempting to use K-...
3
votes
2answers
280 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 ...
8
votes
1answer
2k 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 ...
3
votes
1answer
331 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
203 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
2k views

Is a switch from Java to Python worth it?

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
106 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 ...
4
votes
1answer
397 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 ...
3
votes
1answer
2k 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 ...
14
votes
5answers
23k 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
243 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, ...
4
votes
1answer
756 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 ...
3
votes
2answers
1k views

How to perform gradient checking in a neural network with batch normalization?

I have implemented a neural network (NN) using python and numpy only for learning purposes. I have already coded learning rate, momentum, and L1/L2 regularization and checked the implementation with ...
3
votes
1answer
399 views

How should I approach the game “Achtung, Die Kurve” (“Curve Fever”) using AI?

One of my friends built a version of "Achtung, Die Kurve!", or "Curve Fever" in Python. I was starting to study ML and decided to tackle the game from a learning perspective - write a bot that would ...
-1
votes
1answer
818 views

Simple Image Processing AI for Fire Detection

I have absolutely no experience with any kind of AI and really want to create this: A program that can train on a set of images to determine if an image is showing a fire flame or not (for fire ...
1
vote
0answers
42 views

Training NN with 1000+ bits binary labels?

How would you design and handle training NN where the label is 1000++ bit binary (50% ones, 50% zeros). The number of labels can be small OR big in different situations. My question: is such ...
0
votes
1answer
339 views

What dimension to give to a neural network intputs?

I want to learn a policy network for a Domineering game For each position I have to recall the input (i.e. the board, the flipped board, and the turn) and the output of the same size as the board ...
2
votes
1answer
281 views

Q-learning in Python

I'm working on a q-learning project that involves a "robot" solving a maze, and there is a problem with how I update the Q values (every time the robot ends up switching between two squares instead of ...
4
votes
2answers
1k views

Different action spaces for different states of the environment

I'm new to this AI/Machine Learning and was playing around with OpenAI Gym a bit. When looking through the environments I came across "Blackjack-v0" which is a basic implementation of the game where ...
1
vote
0answers
124 views

My network does always predict always the first right class

I trained my model ResNet-50 for UCMerced_LandUse dataset and this my loss graph but I have a problem when I try my first picture ...