Questions tagged [python]

For questions related to AI implementation in the Python language

Filter by
Sorted by
Tagged with
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 ...
0
votes
0answers
11 views

Scikit-Learn: monotoneous quantile estimation

I would like to implement various AI-estimators for quantile estimation for a regression problem. It would be necessary to have non-crossing quantiles, that is larger quantiles would correspond to ...
0
votes
0answers
20 views

How to implement Multiple Neural network architecture, connected in parallel and series in Keras or Pytorch

Hello Dear StackExchange members, I want to make a deep network as shown in the image. I want each 'network 1 to look at the specific part of the input and I don't want to divide my input beforehand ...
1
vote
1answer
113 views

Reinforcement learning to play snake - network seems to not get trained at all

I am trying to build a network able to play snake game. This is my very first attempt to do such stuff. Unfortunately, I've stuck and even have no idea how to reason about the problem. I use ...
0
votes
0answers
177 views

Applying a 1D convolution for 4D input

i'm trying to implement this paper and I'm stuck for quite some time now. Here is the issue: I have a 3D tensor and has (180,200,20) as dimension and I'm trying ...
3
votes
1answer
65 views

DQN in stochastic environment

I'm trying to apply a DQN to a stochastic environment but i'm having trouble getting it to converge. I found some similar questions asked here, but no solutions yet. I can fairly easy get the DQN to ...
2
votes
0answers
22 views

How to voxelize multiple frames at the time and append them together?

I'm trying to implement this approach for object detection and tracking. In this approach, the first step is voxelize each frame to construct a 3D tensor, the second step is to append multiple voxels ...
1
vote
0answers
18 views

Issues related to RoI Pooling in keras

I am trying to do RoI pooling of an image whose RoI bounding box coordinates are known to me. Can anyone provide me the code for doing the same? I have read many repositories but I didn't get any ...
-2
votes
1answer
107 views

Problem over DQN Algorithm not converging on snake

I'm using a DQN Algorithm to play Snake. The input of the neural network is a stack of 4 images taken from the games 80x80. The output is an array of 4 values, one for every direction. The problem ...
0
votes
1answer
25 views

Intermittent type error when operating CNN inside Docker container

I've been working on a simple computer vision API with a few endpoints for grabbing useful information from ebay images. The API lives in a docker container that looks for the h5 files, downloads ...
3
votes
0answers
79 views

Deep Q-Network (DQN) to learn the game 2048

I am trying to build a Deep Q-Network (DQN) agent that can learn to play the game 2048. I am orientating myself on other programs and articles that are based on the game snake and it worked well (...
0
votes
0answers
58 views

Exploding population size in neat-python

I am trying to make my AI win the board game "Catan" against my friends. Therefore i am using the python implementation of NEAT. As I changed the values of ...
0
votes
1answer
53 views

Railway set artificial inteligence

P3 A basic wooden railway set contains the pieces shown in Figure 3 The task is to connect these pieces into a railway that has no overlapping tracks and no loose ends where a train could run off onto ...
1
vote
0answers
27 views

What qualifies as 'fitness' for a genetic algorithm that minimizes an error function?

Suppose I have a set of data that I want to apply a segmented regression to, fitting linearly across the breakpoint. I aim to find the offsets and slopes of either line and the position of the ...
0
votes
0answers
16 views

Auto Regression Predicting large negative number

I am using Auto Regression for prediction Library: statsmodel Sample Python Code: ...
1
vote
0answers
31 views

Generate QA dataset from large text corpus

I have a corpus of a domain data in form of 10-15 books pdf and some articles and my end-goal is to make a question-answering system particular to that domain. For that, I would need a dataset on Q/A ...
0
votes
0answers
51 views

Online normalization of database for DQN

I have an issue with the normalization of the database (a large time series) for my DQN. I obtained optimal results and saved the NN (5 LSTM layers) weights training on a database normalized as such: ...
-3
votes
1answer
51 views

Which Carrer path to Choose AI Or Game Developmen [closed]

I am An Second Year B.Tech Student. I have Basic Idea Of Unity,C# For Game development and I Recently starting Learning AI in Python So I Am Confused Which to Choose as Career.
2
votes
0answers
53 views

Is there a simple and understandable implementation of BERT?

I am not new to NLP, but, for some reason, I am unable to use BERT. I have seen a ton of blogs, Github repositories, but none could clarify BERT usage to me. It would be helpful if you could provide ...
9
votes
2answers
833 views

Is neural networks training done one-by-one? [duplicate]

I'm trying to learn neural networks by watching this series of videos and implementing a simple neural network in Python. Here's one of the things I'm wondering about: I'm training the neural network ...
0
votes
0answers
62 views

train loss does not convergence

I am using Keras 2.07, with Python 3.5, Tensorflow 1.3.0 on Windows 10 I am testing the architecture used in paper intra prediction using fully connected network for video coding. I hope to use it ...
5
votes
2answers
218 views

Why am I getting the incorrect value of lambda?

I am trying to solve for lambda using Temporal Difference Learning I am trying to figure out what lambda I need, to make TD(λ)=TD(1) but I get the incorrect value of lambda. Here is how I did: <...
4
votes
1answer
220 views

How to implement a neural network for Flappy Bird in Python?

I am new in the field of AI. I am working to create the flappy bird using Genetic Algorithm. After reading and seeing some examples, I saw that most implementations use a Neural Network + Genetic ...
1
vote
1answer
151 views

How do I integrate Tensorflow with EV3DEV?

I've got a Lego Mindstorms EV3 with EV3DEV and EV3-Python installed. I wanted to try out artificial intelligence with the robot, and my first project is going to be to get the robot to try and ...
0
votes
1answer
110 views

Advice on creating a new environment using OpenAI Gym

I'm looking for some general advice here before I dive in. I'm interested in creating a new environment for OpenAI gym to provide some slightly more challenging continuous control problems than the ...
1
vote
1answer
145 views

Choice of inputs features for Snake game

I am designing a neural network using Deep Q-Learning, which teaches an agent how to play Snake (The classic Nokia game from the 90'ies). The goal of the game is to navigate the snake on a playing ...
1
vote
1answer
53 views

Static or dynamic learning rate (Q-learning)

I have the following code (below), where an agent uses Q-learning (RL) to play a simple game. What appears to be questionable for me in that code is the fixed learning rate. When it's set low, it's ...
0
votes
1answer
24 views

Google speech to text API

I need to fix this python code to my project There is the code: https://www.alexkras.com/transcribing-audio-file-to-text-with-google-cloud-speech-api-and-python/ Here the error: Traceback (most ...
1
vote
0answers
29 views

Deploy notebook in IBM Watson

I have a python notebook in IBM Watson Studio for a time series forecasting purpose. it takes two input data MAX MIN and it returns two lists of data having 10 steps ahead prediction of both ...
4
votes
2answers
175 views

Use Machine Learning/Artificial Intelligence to predict next number (n+1) in a given sequence of random increasing integers

The AI must predict the next number in a given sequence of incremental integers (with no obvious pattern) using Python but so far I don't get the intended result! I tried changing the learning rate ...
0
votes
0answers
86 views

Human Pose Comparison

I'm trying to create a service which compares 2 human poses as a part of my main application. I managed to plot skeletons on the images using OpenPose. A detailed explanation of my question: I have 2 ...
1
vote
1answer
38 views

Auto-regression - Reduce error in prediction

I am trying to develop a time series model using autoregression. The data set is like as follows ...
0
votes
1answer
74 views

Monte-Carlo, every-visit gridworld, exploring starts, python code gets stuck in foreverloop in episode generation

I've been trying to implement policy improvement for Q(s,a) function as per Sutton&Barto reinforcement learning book. The original algorithm with first-visit MonteCarlo is pictured below. I ...
3
votes
0answers
39 views

Deep Q-Learning agent poor performing actions. Need help optimizing

I'm trying to make deep q-learning agent from https://keon.io/deep-q-learning My environment looks like this: https://imgur.com/a/OnbiCtV As you can see my agent is a circle and there is one gray ...
0
votes
0answers
34 views

Semantic search engine for a set of documents in python

I want to create a semantic search for a set documents with terms that could not appear on the set. Is there some code for that? I'm working on python.
0
votes
0answers
28 views

How can the bias and the coefficient be calculated in logistic regression?

How can the bias, $b_0$, and the coefficient for the single input value, $b_1$, be calculated in logistic regression? I am trying to calculate these coefficients with pure Python. Can anybody ...
1
vote
1answer
38 views

What types of machine learning model would fit?

I am working on a supervised machine learning problem where I have more than 10 probably 50 or 100 predicting label categories. Which type of model can be used to work on this type of problem in ...
0
votes
0answers
16 views

Controlling number of channels in weight/kernel in tensorflow

To implement a specific function, I need "input_channels" number of kernels in my layer, each having only a single channel depth, and not depth = "input_channels". I need to convolve one kernel with ...
1
vote
0answers
14 views

Is there a way to compare the similarities among different graphs and then cluster them using Unsupervised learning?

I have a dataset about (240000,23). For my task, I have to use an unsupervised learning method and apply it on every single column separately in order to detect anomalies that might exist. I have pre-...
1
vote
2answers
63 views

Running 2 NEAT nets on the same observations

So i have been playing around with neat-python. I made a program, applying neat, to play pinball on the Atari 2600. The code for that can be found in the file ...
6
votes
1answer
395 views

2 Player Games in OpenAI Retro

I have been using OpenAI Retro for awhile, and I wanted to experiment with two player games. By two player games, I mean co-op games like "Tennis-Atari2600" or even Pong, where 2 agents are present in ...
0
votes
0answers
20 views

Loading multiple trained models for use in multi-agent environment

I have an agent that will play in a multi-agent environment, and I'd like that agent to play against other agents that have been previously trained. The model for each agent was saved using ...
0
votes
0answers
98 views

Selu and how to implement it?

I just came accros the "Selu" function. It looks promising, especially with the header "self normalizing neural network", since I have some serious with exploding gradient within my network with (...
0
votes
0answers
46 views

How do I apply batch normalization to my algorithm?

I am working lately on batch normalization for the last couple of days, but I just can't seem to solve it on how to apply it. So, to give the full code to you, I will just send the implementation. ...
0
votes
0answers
26 views

Isolate the speech of two people in an audio record with two people only

I would like to find a way to isolate the speech of each of the people in an audio record so I can create a file of that form : ...
0
votes
2answers
122 views

Where can I find an implementation of the wake-sleep algorithm?

I'm looking to build from scratch an implementation of the wake-sleep algorithm also known as an unsupervised neural network. I plan on doing this in Python in order to better understand how it works. ...
0
votes
0answers
15 views

How to interpret the generated ACF and PACF plot in time-series problem?

I recently started working onto Time-Series problem and gathered insights onto the working and the logic behind. However I'm still not clear that how ACF and PACF plots help us in building a model? ...
1
vote
0answers
49 views

How to install XGBOOST, Lightgbm, catboost without connecting to the Internet

I want to install some libraries such as xgboost, lightgbm, and catboost without connecting to the Internet in Anaconda because of some security issues. Can anybody help me how to do this? Moreover, ...
0
votes
1answer
44 views

Python Packages for Recent Optimization Methods

I want to try and compare different optimization methods in some datasets. I know that in scikit-learn there are some corresponding functions for grid and random search optimizations. However, I also ...
1
vote
2answers
103 views

Is there more than one Q-matrix update formula?

I asked a question a while ago here and since then I've been solving the issues within my code but I have just one question... This is the formula for updating the Q-Matrix in Q-Learning: $$Q(s_t, ...