Questions tagged [python]
For questions related to AI implementation in the Python language
376 questions
68votes
10answers
47kviews
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 ...
35votes
8answers
17kviews
Is a switch from R to Python worth it? [closed]
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. What are the advantages that Python may have over R ...
29votes
4answers
81kviews
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.
14votes
3answers
18kviews
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 & ...
10votes
3answers
9kviews
Can we get the inverse of the function that a neural network represents?
I was wondering if it's possible to get the inverse of a neural network. If we view a NN as a function, can we obtain its inverse? I tried to build a simple MNIST architecture, with the input of (784,...
7votes
3answers
2kviews
Is there an open-source implementation for graph convolution networks for weighted graphs?
Currently, I'm using a Python library, StellarGraph, to implement GCN. And I now have a situation where I have graphs with weighted edges. Unfortunately, StellarGraph doesn't support those graphs I'm ...
7votes
1answer
3kviews
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 ...
6votes
1answer
2kviews
Does it make sense to apply softmax on top of relu?
While working through some example from Github I've found this network (it's for FashionMNIST but it doesn't really matter). Pytorch forward method (my query in upper case comments with regards to ...
5votes
1answer
5kviews
In Q-learning, shouldn't the learning rate change dynamically during the learning phase?
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 ...
5votes
2answers
1kviews
Why isn't my decision tree classifier able to solve the XOR problem properly?
I was trying to solve an XOR problem, and the dataset seems like the one in the image. I plotted the tree and got this result: As I understand, the tree should have depth 2 and four leaves. The first ...
5votes
2answers
1kviews
Why am I getting the incorrect value of lambda?
I am trying to solve for $\lambda$ using temporal-difference learning. More specifically, I am trying to figure out what $\lambda$ I need, such that $\text{TD}(\lambda)=\text{TD}(1)$, after one ...
5votes
1answer
1kviews
In OCR, how should I deal with the warped text on the sides of oval objects?
Consider an image that contains one can (or bottle, or any similar oval object), which has texts all over it. In the image below, I have many bottles, but you can assume that each image only contains ...
5votes
2answers
977views
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 ...
5votes
1answer
2kviews
How can I find a specific word in an audio file?
I'm trying to train and use a neural network to detect a specific word in an audio file. The input of the neural network is an audio of 2-3 seconds duration, and the neural network must determine ...
5votes
1answer
1kviews
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 ...