742 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
64
views
How can I create a Streamlit app to predict based on my MLP model?
I am trying to create a Streamlit application that predicts hypertension risk based on patient input data using the MLP (Multilayer Perceptron) model I trained. Below is my Keras model code:
from ...
0
votes
0
answers
59
views
High initial loss when using focal loss
I am dealing with a highly imbalanced multi-class classification problem, and came across the focal loss function on tensorflow, after implementing it, I still see a high initial loss of ~4000-5000. I ...
0
votes
0
answers
15
views
Set_weights for the FedBN algorithm
Attack classification with FedBN algorithm, but normalization is causing difference in weight set.
ValueError: You called `set_weights(weights)` on layer "model_1" with a weight list of ...
0
votes
0
answers
80
views
100% accuracy for multi_class classification
I am training a model for multi label classification task for each class I have multiple labels after running the test i got 100% for both classes
I used 150 000 images for training and validation and ...
1
vote
0
answers
112
views
Custom Labelling in Multi-Class Classification in XGBoost/ LightGBM
I have the following dataframe which records the IQ, Hours (number of hours of studying) and Score (past exam score for student 1,2,3,4 in different classes (Class_ID) and I would like to use these ...
0
votes
1
answer
124
views
Inconsistent numbers of samples error in multi-class / multi-label machine learning model
I have a OneVsOne model running fine with textual feature and target fields. To progress to a multi-class model (i.e. with multiple textual feature fields), I believe OneVsRest with Logistic ...
0
votes
1
answer
174
views
How to Create a Multilabel Confusion Matrix for 14 Disease Classes in PyTorch?
I’m working on a multilabel classification task with 14 different disease classes. I’ve trained my model, and I want to generate a single multilabel confusion matrix where both the x-axis and y-axis ...
0
votes
1
answer
257
views
Cross-entropy loss with varying number of classes
Is there a standard/efficient way in Pytorch to handle cross-entropy loss for a classification problem where the number of classes depends on the sample?
Example:
In a batch of size 3, I have:
logits1 ...
0
votes
0
answers
180
views
SHAP for multiclass classification
I have a small dataset with 816 rows and 8 numerical features.
The target variable is categorical, with 4 different categories.
I trained a XGB model on the dataset and after that I try to use SHAP ...
0
votes
2
answers
314
views
Multiclass Confusion Matrix
I have this multiclass confusion matrix of Asian currencies and this is the first time I've gotten something like this and it's giving me a hard time to interpret it and also identifying the TP, TN, ...
1
vote
1
answer
76
views
How do I train a model in Tensorflow that captures Joint Class Dependencies?
I've been doing some modeling of fantasy points for baseball players as a hobby. For a given team in a given game, there are nine (9) starting batters who bat in order.
I've trained each of their ...
0
votes
0
answers
115
views
How can I implement regression after multi-class multi-label classification?
I have a dataset where some objects (15%) belong to different classes and have a property value for each of those classes. How can I make a model that predicts multi-label or multi-class and then make ...
1
vote
0
answers
98
views
Error in sklearn’s cross_val_score with ‘f1’ scoring for categorical target in LightGBM
My code receives a dataset and runs a classification on it with lightgbm. The problem is when I try to do fine-tuning with sklearn's cross_val_score, the target column contains categorical values, not ...
-1
votes
1
answer
70
views
How to track loss of multi-label MLP?
I am given binary data points of dimension 5,000. I am asked to perform machine learning predicting a binary vector of length 1k, where each position of the output is a class. The classes are not ...
0
votes
1
answer
99
views
Using sklearn for hierarchical classification
I was wondering if hierarchical classifications are supported by the sciki-learn library. I am dealing with the 3 classes divided by 6 subclasses each, such as:
import numpy as np
from sklearn.tree ...