521 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
30
views
Issue with Input Array on Random Forest Model with Both Numerical and Categorical Features
I am obtaining a ValueError regarding the input arrays and there dimension. I am trying to create a Random Forest Regression Model for price prediction using both numerical features and categorical ...
0
votes
0
answers
65
views
basic linear regression not predicting y=x+5 pattern
however my cost is continuously decreasing but my linear regression is unable to predict just simple pattern y=x+5.
i tried all value for alpha and minimum cost i got is 3.00.
x=[]
y=[]
for i in range(...
0
votes
1
answer
26
views
When should I do characteristic selection?
I am running some Machine Learning algorithms in order to train a model.
Until now I've been doing a correlation matrix in order to select the characteristics with highest correlaction to my target ...
0
votes
1
answer
90
views
Supervised learning? or unsupervised learning? which one is correct?
I am currently working on an image classification task, and the process involves training with the desired target values, making it a supervised learning task.
However, when training a model, such as ...
0
votes
0
answers
23
views
Getting TypeError while implementing the gradient descent code for regularized values
My Code (from coursera):
def gradient_desc(X, Y, w_in, b_in, cost_f, grad_f, alp, num, lambda_):
m = len(X)
# An array to store cost J and w's at each iteration primarily for graphing later
...
0
votes
0
answers
105
views
How to handle tokens that don't have a label in an NLP task?
I'm working on training an NLP model to detect sensitive information in documents. There are 15 categories of sensitive information I'm attempting to predict. It seemed like adding another category ...
1
vote
2
answers
960
views
How to normalize Imagenet dataset with pytroch?
I am trying to write a simple code to teach resnet50 on ImageNet dataset. I don't quite get why normalization does not work. When I use this transformation as data augmentation:
train_transforms = ...
0
votes
1
answer
200
views
Is this the correct implementation of a MAML model?
I have used CLIP embeddings of image and text as the input and the output is a label ranging from 0 to 5 (6 way label). I tried to make an implemention of this multimodal 6 way classification using ...
0
votes
1
answer
72
views
How to calculate an optimal Bayes estimator for a class sensitive loss function?
The Bayes estimator uses p(x, y) as a probability mass function over (X, Y ) where X = [n] and Y = [k] thus for every x∈X and every y∈Y, p(x, y) = 1. There is a k x k dimension cost matrix, C ∈ [0,∞) ...
0
votes
0
answers
67
views
(semi) supervised learning; The custom trainings loop doesn't train the model properly. The training seems to ignore any weights
I try to code a semi-supervised model for a project besides the university. First I got a model which trained with the model.fit (I tested the model with supervised learning first). But for semi-...
1
vote
1
answer
436
views
How to train an autoencoder in a supervised manner?
I have two datasets, one numeric and one semantic information of the numeric ones. I want to train an autoencoder to give latent embeddings that should match the semantic dataset. That is: ae_model = ...
-1
votes
1
answer
309
views
Numerical and Categorical Features in classification problem [closed]
I have a classification problem to figure out hotel cancellations (in python).
I'm stuck in a problem of the first steps.
I have some variables regarding hotel reservations, and some of them are:
...
0
votes
2
answers
66
views
Read content of several txt files into python
I have two folders, each folder contains words in various .txt files, one folder is named 'good' while the other is named 'bad', I want to write a python script that will import all the data into a ...
1
vote
1
answer
325
views
What could cause the incorrect number of linear predictors in the multinom family of a multinomial GAM?
Consider the following model modeling nine genotypes (integer numbers) by their growth pattern (The ratio of plant height growth over plant diameter growth) over time (in day of the year).
m2 <- ...
3
votes
0
answers
204
views
Pytorch - Training loss not changing with simple CNN model
In an image classification task of around 15 classes, the classes are rathe simple, categorized by color. Not some very high level detail.
The graphs of loss and accuracy over 100 epochs
I am using ...