Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [python]

For questions related to AI implementation in the Python language

Filter by
Sorted by
Tagged with
68 votes
10 answers

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 ...
Douglas Ferreira's user avatar
14 votes
3 answers

How do I compute the structural similarity between sentences?

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 & ...
Shubham Tiwari's user avatar
29 votes
4 answers

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

I just want to know why do machine learning engineers and AI programmers use languages like Python to perform AI tasks and not C++, even though C++ is technically a more powerful language than Python.
Mark ellon's user avatar
3 votes
0 answers

Understanding log probabilities of actions in the PPO objective

I'm trying to implement the Proximal Policy Optimization (PPO) algorithm (code here), but I am confused about certain concepts. What is the correct way to implement log probability of a policy (...
Chintan Trivedi's user avatar
3 votes
1 answer

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 ...
cjm333's user avatar
  • 63
2 votes
1 answer

Can agents be implemented with ML algorithms other than neural networks?

Can agents be implemented with machine learning algorithms/models other than neural networks? If so, how do I train an agent with some predefined rules? Can we use python programming for representing ...
Dayz's user avatar
  • 61
2 votes
1 answer

How many layers exists in my neural network?

I have a neural network model defined as below. How many layers exist there? Not sure which ones to count when we are asked about the number. ...
Mary's user avatar
  • 973
2 votes
0 answers

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 ...
wuerfelfreak's user avatar
2 votes
1 answer

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 ...
ayeo's user avatar
  • 123
1 vote
0 answers

The results changed even though seed is fixed [closed]

I am using a reinforcement learning model for some tasks. and for the model, I am using stable_baselin3 and for the environment, I am using the gym. I made a small change in the environment and the ...
Maunish Dave's user avatar
1 vote
2 answers

What are some programming-oriented resources for reinforcement learning?

I have been reading: Reinforcement Learning: An Introduction by Sutton and Barto. I admit it's a good read for learning RL whereas it's more theoretical with detailed algorithms. Now, I want something ...
Arpit-Gole's user avatar
1 vote
1 answer

Once the environments are vectorized, how do I have to gather immediate experiences for the agent?

My main purpose right now is to train an agent using the A2C algorithm to solve the Atari Breakout game. So far I have succeeded to create that code with a single agent and environment. To break the ...
jgauth's user avatar
  • 261
1 vote
0 answers

Is a true RNN auto encoder possible with Keras/TF

I want to get some encodings for temporal data (with a highly varying number of timesteps). The dataset is of the format: ...
Tobi Akinyemi's user avatar
0 votes
1 answer

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 ...
shurup's user avatar
  • 131