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
3
votes
1answer
28 views

How do I combine models trained on different data to increase classification accuracy?

I have two trained models. One is using a LinearSVC algorithm and is trained on numerical data from medical examination from patients with diabetic retinopathy. The second one is a neural network ...
3
votes
2answers
26 views

Using a neural network to identify a stable region within a set of data?

I am working on a problem in which I am attempting to find a stable region in a spiral galaxy. The PI I'm working with asked me to use machine learning as a tool to solve the problem. I have created ...
0
votes
0answers
27 views

How could I locate certain words or numbers in a financial statement?

I would like to code a script that could locate a specific word or number in a financial statement. Financial statements roughly contain the same information, they are however not identical and ...
2
votes
0answers
22 views

Which machine learning algorithms can be used to build a recommendation system?

I am working on building a recommendation engine. I need to build a model that recommends similar items. Currently, I am using the Nearest Neighbor algorithm present in ...
0
votes
0answers
16 views

Why does my neural netowrk output the same wrong output for a XOR gate? [closed]

It is as the title states. I have tried to debug my program for a while now but I have failed to find the problem. I used the library scikit-cuda in order to multiply numpy matrices. The program has ...
0
votes
0answers
27 views

Fully-Configured Deep Learning VM in Python (VirtualBox or VMware)

Often when we start working on any new technology, the most common challenge that we face is "How can I not waste time setting up my environment but directly working on the technology?" If you aren’t ...
0
votes
1answer
26 views

how to identify which weights in the output belong to which class in Neural network? [closed]

I have a Multi-layer perceptron. My target variable contains 8 unique values i.e I will have 8 Neurons in the Output Layer. If I want to get weights for a specific class how do I know which neuron ...
1
vote
1answer
18 views

Is a VGG-based CNN model sometimes better for image classfication than a modern architecture?

I have an image classification task to solve, but based on quite simple/good terms: There are only two classes (either good or not good) The images always show the same kind of piece (either with or ...
2
votes
0answers
7 views

How to learn using DDPG in python solely using a timeseries datasets

I have a lengthy timeseries datasets which contains several variables (from sensors etc) to be classified as actions or states. Providing they are successfully done, I want to learn a control policy ...
1
vote
1answer
62 views

How to Extract Information from the png Image

I'm trying to extract some particular information from the image(png). I tried to extract the text using the below code ...
2
votes
1answer
34 views

when should I create a custom loss function?

Hi I'm using neural network to solve a multi regression problem. I'm trying to predict continuous values, to be more specific I'm making a tracking algorithm to track the position of an Object, I'm ...
1
vote
0answers
31 views

Did I understand deep Q leaning right? (Implementation)

Gday guys, so I tried to implement my own enviroment and agent in order to fully understand DQNs. The enviroment is a dungeon with five states. actionspace = 2 statespace = 5 !!!Action a0 is ...
0
votes
0answers
19 views

Ideas on how to train an AI to play Mario Kart with the DeSmuME Emulator

Gday guys, i have this idea in my mind for quite a while. I want to teach an AI to play Mario Kart on the NDS, which can hopefully beat me and my friends one day. Iam familiar with the theoretical ...
2
votes
0answers
15 views

How to choose the suitable Neural Network Architecture for Regression Tasks

so I'm working on a Project where I want to predict the Vehicle Position from the Vehicle Data like speed, acceleration etc.. now the data that I have comes also with a timestamp for each sample ( I ...
1
vote
1answer
43 views

Can A.I/Deep Learning use one image as content for another image?

Is it possible for A.I to redraw an image in a new context? More specifically, suppose I take a photo of a notebook. I get the angle, lighting and perspective perfect. Now I copy an image I found ...
0
votes
0answers
24 views

How to calculate covariance matrix of the mini-batch in the k-th layer using Python?

I am a beginner in Python. I want to calculate the covariance matrix of a mini-batch in a given hidden layer.
2
votes
0answers
137 views

Why the loss keep increasing during training?

I'm trying to use TensorFlow and this how I compute the loss ...
2
votes
0answers
31 views

How to control the switches of a railway track with Artificial Intelligence?

Usually, it's very complicated to program a real time strategy game from scratch. Notable examples like Lemmings or Starcraft are software projects with a large amount of codelines. A much easier ...
3
votes
1answer
34 views

Why is batch gradient descent performing worse than stochastic and minibatch gradient descent?

I have implemented a neural network from scratch (only using numpy) and I am having problems understanding why the results are so different between stochastic/minibatch gradient descent and batch ...
2
votes
0answers
28 views

how to use Softmax action selection algorithm in atari-like game

I'm currently writing a program using keras (python 3) to play a game similar to Atari games, only in this one there are objects moving in the screen in different angles and directions (in most of ...
4
votes
1answer
38 views

How Machine Learning Studies Correlation?

This is my problem: I have 10 variables that I intend to evaluate two by two (in pairs). I want to know which variables have the strongest relationships with each other. And I'm only interested in ...
-2
votes
1answer
124 views

Python ERROR: No matching distribution found for tensorflow [closed]

Now as I understand that kind of technical questions is out of scope for the ai.stackexchange.com I will use stackexchange.com for such technical questions. Thank you for you all for your ...
0
votes
0answers
27 views

Matterport MRCNN and multiclass classification

I want to create a model which solve a multiclass classification problem. The main concept is: every picture contain only one object the background is very simple all object is coming from the same ...
1
vote
0answers
28 views

I am trying to create a network with dynamic connections for every different training example

I have developed a new algorithm which has dynamic connections. it is based off of the following paper: https://www.researchgate.net/publication/...
0
votes
1answer
449 views

'numpy.ndarray' object is not callable error [closed]

I want to find optimize minimum value but it shows 'numpy.ndarray' object is not callable error. This is my code in python ...
1
vote
1answer
31 views

Can ConvLSTMs outuput images?

I am working on an image to image regression task which requires me to develop a deep learning model that takes in a sequence of 5 images and return another image. The sequence of 5 images and the ...
2
votes
0answers
44 views

Image to image regression in tensorflow

I am working on an image to image regression task which requires me to develop a deep learning model that takes in a sequence of 5 images and return another image. The sequence of 5 images and the ...
1
vote
0answers
40 views

How can construct python programming environment? [closed]

Now, I don't have full experiences with python using anaconda, so help me. In anaconda how can I use python in the field of object tracking.
0
votes
0answers
19 views

Suggestions for Deep Learning for regression on huge 3D volumes

I have a dataset of 3D images (volumes) with dimensions 400x250x400. For each input image I have an output of the same dimensions. I would like to train a machine learning (or deep learning) model on ...
0
votes
0answers
12 views

How to use FSICFR (or CFRM) trained result in real dice game playing

I trained a Liar Dice game (similar rule please refer to https://www.wikihow.com/Play-Liar%27s-Dice , and i am using 2 player + 1 dice vs 1 dice) with FSICFR algorithm and got an information set with ...
4
votes
2answers
109 views

Is it possible to teach an AI to edit video content?

Every week I will get a lot of videos from a game that I play, outside the game where you throw wooden skittle bats at skittles, and then I will cut videos, so that, at the end. there is video only ...
1
vote
1answer
75 views

Deep Q Learning Algorithm for Simple Python Game makes player stuck

I made a simple Python game. A screenshot is below: Basically, a paddle moves left and right catching particles. Some make you lose points while others make you gains points. This is my first Deep Q ...
30
votes
8answers
13k views

Is a switch from R to Python worth it?

I just finished a 1-year Data Science master's program where we were taught R. I found that Python is more popular and has a larger community in AI. Is it worth for someone in my position to switch ...
0
votes
1answer
54 views

How to train a LSTM model with multi dimensional data

I am trying to train my model using LTSM layer in Keras (python). I have some problems regarding the data representation and feeding it into the model. My data is 184 XY coodinates encoded as a numpy ...
1
vote
0answers
10 views

Extracting Descriptors and feature points for 3d mesh

I'm programming my work with python, and I have a mesh and I want to extract 3d descriptors and feature points from it( trying to work on multi-scale strategy) , to visualize them later on the mesh, ...
2
votes
0answers
40 views

Grouped Text classification

I have thousands groups of paragraphs and I need to classify these paragraphs. The problem is that I need to classify each paragraph based on other paragraphs in the group! For example, a paragraph ...
0
votes
0answers
39 views

Understanding policy update in PPO2

I have a question regarding the functionality of the PPO2 algorithm together with the Stable Baselines implementation: From the original paper I know that the policy parameters $\theta$ are updated K-...
1
vote
0answers
26 views

AI for Warcraft 3 Dota

I want to create AI for Dota1. Is it possible to create AI for Warcraft 3? How Open AI works in Dota2? I want to know more about algorithms what are in foundation in Open AI.
1
vote
0answers
19 views

i have trained my model & now trying to predict but unable to do using keras

i have trained my model & now trying to predict but unable to do please help. trying to predict cat or dog stuck in "prediction" ...
3
votes
1answer
103 views

Which approach can I use to generate text based on multiple inputs?

I have a little experience in building various models, but I've never created anything like this, so just wondering if I can be pointed in the right direction. I want to create (in python) a model ...
1
vote
0answers
33 views

Understanding log probabilities of actions in PPO objective

I'm trying to implement Proximal Policy Optimization algorithm (code here) but am confused about certain concepts:- 1) What is the correct way to implement log probability of a policy (denoted by ...
0
votes
1answer
41 views

Entropy term in Proximal Policy Optimization (PPO) becomes undefined after few training epochs

I have implemented the total loss of my PPO objective as follows:- ...
0
votes
0answers
14 views

Why are my convolutional layer activations large and saturating the softmax function?

I implemented a neural network in python from scratch (The github repo to it.). It works reasonably well and I benchmarked different designs using convolutional layers on MNIST and it worked better ...
1
vote
0answers
35 views

Understanding CNN+LSTM concept with attention and need help

I have a question about the context of CNN and LSTM. I have trained a CNN network for image classification. However, I would like to combine it with LSTM for visualizing the attention weights. So, I ...
0
votes
1answer
130 views

How to Mask an image using Numpy/OpenCV?

I am detecting wheels with a deep learning algorithm. The algorithm gives me the coordinates of those rectangles. I want to keep data that is in the rectangles of the image. I created rectangles as a ...
0
votes
1answer
22 views

How to rescale data to its original range after MinMaxScaler?

I'm using sklearn's MinMaxScaler in order to scale my data down. However, it would be nice to be able to rescale it back to its original range. Is there any way I ...
0
votes
1answer
28 views

How can I perform multivariable regression with neural networks?

I want to use a neural network to perform a multivariable regression, where my dataset contains multiple features, but I can't for the life of me figure it out. Every kind of tutorial on the internet ...
0
votes
1answer
44 views

Why does keras model get bigger after training?

I notice that I create a model using tensorflow.keras.Sequential(), save it and the file size is around 5 MiB, but after I call ...
1
vote
1answer
24 views

Better to learn the same small set for multiple epochs then go to the next or learn from each one time repeatedly for multiple times?

I don't know if I worded the title correctly. I have a big dataset (300000 of images after augumentation) and I've splitted it into 10 parts, because I can't convert the images into a numpy and save ...
3
votes
1answer
66 views

Which models accept numerical parameters and produce a numerical output?

I need a model that will take in a few numerical parameters, and give back a numerical answer (Context: predicting a slope based on environmental factors without having to actually take measurements ...