We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [python]

For questions related to AI implementation in the Python language

Filter by
Sorted by
Tagged with
6
votes
6answers
395 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
89 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
58 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
56 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
5k 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 ...
2
votes
1answer
69 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
142 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
288 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
379 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 ...
5
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
219 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
53 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
101 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
274 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 ...
2
votes
1answer
310 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
198 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

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
100 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
357 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 ...
13
votes
5answers
20k 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
210 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, ...
3
votes
1answer
698 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
368 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
vote
1answer
398 views

Non-linear regression. Universal function approximation with deep neural networks

The problem to solve is non-linear regression of a non-linear function. My actual problem is to model the function "find the max over many quadratic forms": max(w.H.TQw), but to get started and to ...
-1
votes
1answer
788 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
312 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
263 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
963 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
122 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 ...
2
votes
2answers
149 views

Can anyone suggest a small application based on an Artificial Intelligence which can be done by a beginner in AI?

Any small application based on real world application of AI which can be done easily at home for a beginner who is trying to make use of his basic programming skills into AI at the beginning level.
2
votes
1answer
144 views

Keras pattern finding between hash and word

My goal is to build a neural net that can find patterns between a hash and a word on it's own. So that it returns the word of any hash that I will input. Unfortunatally my skill in the area of ...
3
votes
0answers
226 views

How do I make and use a dataset for StackGAN

So I am currently trying to create a program that when provided a list of descriptive words or a passage of text, would create a piece of abstract art based on the feelings evoked by those words. I ...
1
vote
0answers
20 views

Can number of Leads be predicted based on previous months

I have a sample set of data about Leads that gets generated every day. Leads are nothing but a user expressing request to be our partner or not. Sample data set is as shown below ...
1
vote
1answer
641 views

How to label edited images after data augmentation

I am new to neural networks, I've only started studying and learning about the subject a year ago, and I just started building my first neural network. The project is a little bit ambitious: A ...
12
votes
3answers
16k views

Sentence similarity in Python

I am working on a problem where I need to determine whether two sentences are similar or not. I implemented a solution using BM25 algorithm and wordnet synsets for determining syntactic & ...
-1
votes
3answers
2k views

How do I start learning AI with Python? [closed]

Can anybody suggest how to get started with Artificial Intelligence specifically with Python? I am looking for: Reliable resources I can use Basic test problems to solve Online tutorials and ...
2
votes
1answer
1k views

Developing a Blackjack AI

I'm currently developing a blackjack program that I posted on code review SE about a month ago and, after making a few changes based on the users suggestions and my friends' suggestions, I want to ...
48
votes
8answers
27k views

Why is Python such a popular language in the AI field?

First of all, I'm a beginner studying AI and this is not an opinion oriented question or one to compare programming languages. I'm not implying that Python is the best language. But the fact is that ...
-3
votes
2answers
2k views

How to program AI in Mindstorms [closed]

I have a LEGO Mindstorms EV3 and I'm wondering if there's any way I could start coding the bot in Python rather than the default drag-and-drop system. Is a Mindstorm considered AI? Is this possible? ...