2022 Developer Survey is open! Take survey.

Questions tagged [python]

For questions related to AI implementation in the Python language

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Predicting using time-series data and static data?

I have recently been working on predicting the final value of articles on Steemit.com using downloaded data. I have a large variety of features which divide into two types. Features which change over ...
user avatar
-1 votes
0 answers
15 views

How to extract (Plutchik’s Wheel of Eight Emotions)emotions of every row of a dataframe? [closed]

I have this type of dataframe. My objective is to extract emotion of every row (Plutchik's eight emotions (anger, fear, anticipation, trust, surprise, sadness, joy, and disgust)). O/p :- I started ...
user avatar
  • 119
1 vote
0 answers
24 views

Why is my convolutional neural network failing to classify user inputted images after having high accuracy in testing?

My CNN was trained on the Kaggle A-Z Dataset and consists of: ...
user avatar
0 votes
0 answers
15 views

Build the architecture of an ensemble model for tabular classification

I have data that looks like this: ...
user avatar
  • 111
0 votes
1 answer
55 views

How can I reduce the loss? Why do I have the high loss and why do I have the gradient?

I want to classify some images (there are about 200.000 images) with a CNN. But I get a very high loss, see figures: Loss over the hole training run Loss for each epoch It's confused me, that there ...
user avatar
0 votes
0 answers
8 views

Quick Lightweight Image Segmentation Model For Training on Custom COCO-Format Dataset

I'm trying to build a model for image segmentation on a Raspberry Pi. I have a dataset with annotations in the COCO-format that took a long time to build, so I'd prefer not to have to build another ...
user avatar
0 votes
0 answers
24 views

What could be causing the poor performance (MSE) of a dense neural network on a real time-series dataset?

I am trying to understand time series analysis and actually I am following the course "Sequences, Time Series and Prediction" in Coursera. The course is based on a synthetic dataset, ...
user avatar
0 votes
0 answers
9 views

How to get match probability of the input text to the historical data?

I have 4 bln rows of data and unique 7500 products. Product ID has the commercial name of the product, which means that Product X can have a different set of descriptions. For example, ...
user avatar
0 votes
0 answers
15 views

Matching a reconstructed 3D Face Model and a 2D Image

I'm working on a project where I should replace the face in the original video with a reconstructed face. I read a lot of articles about keypoints matching and deepfake but there are no pretrained ...
user avatar
1 vote
1 answer
21 views

Prediction of continuous variable based on threshold

The independent variables are date, count, atmp, and ...
user avatar
  • 111
0 votes
1 answer
20 views

Emulate program behavior using neural network

I have an exe file but no access to its source code. It takes as input a list of 8 parameters and prints text files containing the output. I was wondering if it is possible to write an AI-based ...
user avatar
0 votes
1 answer
28 views

Having the negative cases in the same batch vs. shuffling the dataset

I am working on a model for an NLP task. The model encodes the text and has a regression output layer. In this task, from each instance (positive), I create several negative cases using a specific ...
user avatar
  • 123
0 votes
0 answers
17 views

How can I find the factor contributing to a prediction? [duplicate]

I've developed a neural network which predicts if someone is diagnosed with cardiovascular disease. Is it possible to find out which feature is the main cause of the prediction? For example, when a ...
user avatar
  • 1
0 votes
0 answers
117 views

Compare Strings composed from 2-3 words using NLP/ML(Python)

I have a database of books. Each book have a list of categories that describe the genre/topics of the book (I use Python models). Most of the time, the categories in the list are composed from 1-3 ...
user avatar
0 votes
1 answer
72 views

Does Value Loss in Actor Critic not decrease at all?

I am coding a problem with the Actor-Critic Method. The final loss is a summation of PolicyLoss and ValueLoss. The calculation of the PolicyLoss for each step is given at Equation Number 5 of https://...
user avatar
0 votes
0 answers
19 views

Arabic words are reversed when I call lstmeval while training in tesseract

I've been trying to train for a new font using Tesseract. It has worked with the default data. But I wanted to train the model for my own generated data which is close to the data that I wanted to use ...
user avatar
0 votes
1 answer
60 views

Where can I find authentic references on "categorical cross entropy" and "categorical accuracy metric"?

My Python source code uses TensorFlow and Keras to implement a neural network. The Keras source code uses something called "categorical cross-entropy" and "categorical accuracy metric&...
user avatar
0 votes
0 answers
17 views

Is there a vectorized Implementation of Convolution (Full Mode) with a very big kernel/gradient?

I'm currently trying to figure a way to implement the backpropagation of a convolutional layer with plain numpy. In theory, I can calculate the partial derivative of the loss w.r.t. the convolution ...
user avatar
0 votes
0 answers
15 views

Is this the correct method for how to implement a stratified K fold with grid search SVC?

I'm writing a support vector classifier for a binary class using some toy data. This is the code: ...
user avatar
0 votes
1 answer
28 views

Why does validation accuracy stop rising so soon?

I have implemented a GRU to deal with youtube comment data. I am a bit confused about why the validation score seems to even out around 70% and then keeps rising, this doesn't look like overfitting ...
user avatar
  • 1
1 vote
0 answers
72 views

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 ...
user avatar
1 vote
2 answers
284 views

Are these book example CNN results realistic?

I've been following a deep learning book and the current section I'm on is about convolutional neural networks. The author presents some code to create a basic CNN with about 1 million parameters, ...
user avatar
  • 21
0 votes
1 answer
55 views

Is there a way to use AI to compare thousands of files and detect the ones containing "unusual" content?

Is there a way to use python and AI to compare thousands of files and detect the ones containing "unusual" content? Those files are supposed to have "homogeneous" configuration ...
user avatar
  • 109
0 votes
0 answers
44 views

Evaluating different board states with a minimax AI algorithm python

I am working on writing a connect 4 game as well as a minimax algorithm to play against. I am currently writing and implementing the minimax algorithm. Right now I am just trying to print out all ...
user avatar
1 vote
0 answers
23 views

Can I use a Mask R-CNN to detect a skin texture?

I'm trying to implement a solution in python to detect skin in an image. I'm evaluating the Mask R-CNN model to create a mask on the skin (not on clothes). The problem is that every solution I have ...
user avatar
  • 11
0 votes
0 answers
34 views

What is the best machine learning algorithm for clustering dots based on coordinates $(x,y)$ with consideration of weight of the points?

I'm looking for a machine learning algorithm for clustering points based on their coordinates. Furthermore, I want to take into consideration the weights of each point. Suppose there is a weight in ...
user avatar
0 votes
0 answers
37 views

What model to train to restore MNIST test dataset

I came across this problem, and am not sure where to start. What model would work best for this problem and why? Imagine the digits in the test set of the MNIST dataset (http://yann.lecun.com/exdb/...
user avatar
1 vote
1 answer
50 views

Feature Extraction for printer classification

I need some advice. I am currently trying to do a printer classification with ML/DL. What do I have? 11 colored-images with high resolution from 8 different inkjet-printers (in total 88 images) I have ...
user avatar
  • 111
2 votes
0 answers
40 views

How rewards are playing role in Deep Q Network

I have started working on Reinforcement Learning, specifically DQN. And I have watched some interesting videos on it. However, I have some doubts about how the model works. Let's say we are playing ...
user avatar
0 votes
0 answers
21 views

Which AI algorithm to use for identifying API for a specific use from a list of APIs?

We have a legacy code solution in C#. We have to change the code so that it fetches internal data via APIs and not via DB calls. E.g. if the current code GETS Payment object from DB, we have to ...
user avatar
  • 1
0 votes
0 answers
24 views

Adversarial Autoencoder is not working and not learning properly

I am trying to get an Adversarial AutoEncoder going using keras Fit method on a keras.model class but for some reason it is not working. Keep in mind that I tried updating encoder and decoder at the ...
user avatar
  • 1
0 votes
0 answers
23 views

Find words in a raw text that are similar to a predefined array of words

I need a beginner advice regarding a simple application where I have a very limited set of topics in which i need to identify inside a user's natural language text/sentence. For example, one of the ...
user avatar
1 vote
1 answer
68 views

What is the best open source python repo for facial recognition? [closed]

I am looking for best open source python repo for facial recognition. Best if it uses tensorflow backend. I know you can train images to recognize. Yolo can be used if trained on face. To name the ...
user avatar
1 vote
0 answers
91 views

Implementation of MDP in python to determine when to take action clean

I am trying to model the following problem as a Markov decision process. In a steel melting shop of a steel plant, iron pipes are used. These pipes generate rust over time. Adding an anti-rusting ...
user avatar
  • 111
0 votes
0 answers
16 views

What are the pros and cons of using a normal positional encoding in an adjacency matrix?

I understand that a normal positional encoding helps a transformer to understand pictures better and that it allows the (otherwise permutational invariant transformer-network) to create relationships ...
user avatar
0 votes
0 answers
18 views

Categorical Location based Time Series data Prediction using LSTMs

I have some time series data with ActivityType as location shared below. Each CaseID has 6 unique values with different ...
user avatar
0 votes
0 answers
29 views

Why isn't my perceptron having the expected costs?

I want to implement a single perceptron for linear regression using the following formulas: The input data for the first case is one column (x(392, 1); y(392, 1)) ...
user avatar
2 votes
1 answer
76 views

How to generate a response while considering past questions as well?

User: What is the tallest mountain? Agent: Everest User: Where is it located? # Agent hears: "Where is Everest located?" Agent: Nepal I want to be able ...
user avatar
0 votes
1 answer
38 views

Identify whether two companies are the same

I am trying to solve a problem where I need to map multiple variations of a company name to a single name. For example: say I have a company named ...
user avatar
1 vote
0 answers
64 views

How to parallelize multi-agent DDPG (MADDPG)

I am experimenting with MADDPG algorithm implemented in this repo. Since there were only a few agents (2-3) in the implementation (also in the original paper) steps like parameter updates, action ...
user avatar
  • 167
0 votes
1 answer
131 views

Which of the following two implementations of a Least Squares classifier in Python is correct?

I am trying to solve a classification problem by implementing the Least Squares algorithm in Python. To solve this problem, I am implementing the linear algebra formula to train the classifier, which ...
user avatar
1 vote
0 answers
17 views

The results are not correct when predicting the future for a very long period of time with LSTM

I am currently using LSTM to try to predict future data in AirPassengers.csv. This is current code op my Colab (sorry for the comments are Japanese) https://colab.research.google.com/drive/...
user avatar
  • 13
0 votes
0 answers
31 views

Which Neural Network Topology to choose, are Transformers suitable?

I have a regression problem and I am not quite sure which architecture to choose. I never worked with transformers before, but I generally understand how they work and I think they might be suitable. ...
user avatar
0 votes
0 answers
30 views

Graph neural network - what level (node or link or graph) prediction should be used for my problem?

I posted this on cross-validated but did not get a response. Trying my luck here. Sorry if this is not recommended. I have an undirected graph with nodes separated within a specified distance, say d, ...
user avatar
  • 1
0 votes
0 answers
22 views

LSTM predictions are one time step lagging

My problem involves electricity prediction (time-series problem) for 1-hour ahead. I am using LSTM to forecast. Length of Dataset: 1 year at one-hour interval Input: Outdoor Temperature (Ot), ...
user avatar
0 votes
1 answer
26 views

Data analysis before feeding to ML pipeline

I'm new to machine learning and I've been working through a dataset of ~3000 records with ~100 features. I've been hand rolling Python and R scripts to analyse the data. For example, plotting the ...
user avatar
  • 103
0 votes
0 answers
162 views

Compute IoU for each class in Mask R-cnn

I'm trying to compute the IoU, with the matterport Mask R-cnn implementation, for each class (13 in total) that i have in my dataset. For now i managed to compute the average IoU for all the classes ...
user avatar
1 vote
0 answers
103 views

Why doesn't this Monte Carlo Tree Search algorithm work properly?

PROBLEM I'm writing a Monte-Carlo tree search algorithm to play chess in Python. I replaced the simulation stage with a custom evaluation function. My code looks perfect but for some reason acts ...
user avatar
0 votes
1 answer
59 views

Train a deep learning model with input as a vector and predicts as a vector? [closed]

I am trying to build a Deep Learning model that takes a numeric vector $X$ of dimension $1 \times 50$ and predicts a numeric vector $y$ of dimension $1 \times 50$. It's a linear regression problem. I ...
user avatar
  • 3
0 votes
0 answers
14 views

What next after LDA and NMF for topic modelling (with Python)?

I have used NMF and LDA for topic modelling in Python, with what I would call good results with NMF, and poor results with LDA. My data is highly domain-specific, with a lot of unique/specific ...
user avatar
  • 101

1
2 3 4 5 6