Category "machine-learning"

I created a TF-IDF code to analyze an annual report, I want to know the importance of specific keywords

import pandas as pd from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import TfidfVectorizer import path import

Error in init() function during azure ML deployment due to model path definition [closed]

We are trying to deploy a model to Azure ML workspace containing a saved model & One Hot Encoded joblib file. We are facing issue in init(

Error in fine-tuning a pre-trained FasterRCNN instance segmentation model (Detectron2) on my custom dataset

from detectron2.engine import DefaultTrainer from detectron2.config import get_cfg import os cfg = get_cfg() cfg.merge_from_file(model_zoo.get_config_file("COC

Pytorch Dataloader for .nifti.img files

I am trying to load the OSASIS-2 dataset in order to try to predict the onset of dementia. However, there does not, to my knowledge, exist a dataloader for this

Which method should I use to sample from a normal distribution?

I'm trying to sample batch_size points from an N-dim standard Gaussian distribution. But I noticed there are two similar functions I can use, and I want to know

How to download pipeline code from Pycaret AutoML into .py files?

PyCaret seems like a great AutoML tool. It works, fast and simple and I would like to download the generated pipeline code into .py files to double check and i

How to create synthetic data based on dataset with mixed data types for classification problem?

I am trying to build a classification model, but I don't have enough data. What would be the most appropriate way to create synthetic data based on my existing

how can I modify Dataset class to make the mask RCNN work with multiple objects?

I am currently working on instance segmentation. I follow these two tutorials: https://haochen23.github.io/2020/06/fine-tune-mask-rcnn-pytorch.html https://col

Why is VGG16 giving lesser no. of total parameters?

from tensorflow.keras.applications import VGG16 pre_trained_model = VGG16(weights='imagenet', include_top=False, input_shape=(224, 224, 3)) model = Sequential

AttributeError: 'list' object has no attribute 'i_sd'Which function can be used to get values from a Callback Class

The callback is called when specific events occur in an environment (e.g. at the beginning/end of a reset and beginning/end of a step). I have written a stub of

Error: "ValueError: could not convert string to float: 'Private Sector/Self Employed' "

Output- "ValueError: could not convert string to float: 'Private Sector/Self Employed' ". I need help with this error as I get this error consistently import nu

is there a way to cluster tweets after vectorizing them?

I need to cluster tweets based on similarity between them, I am using dec2vec to vectorize them and now I need a way to cluster this vectors, also I tried kmean

Trying to load data for ml project in jupyter notebook but having issues with dtype

I'm trying to load images into my jupyter notebook but I'm getting this error TypeError Traceback (most recent call last) TypeE

How to interpret MSE in Keras Regressor

I am trying to build a model to predict house prices. I have some features X (no. of bathrooms , etc.) and target Y (ranging around $300,000 to $800,000) I have

one classifier for multi-labels with autokeras, data table

i have a data table with 5 labels. i want to use autokeras to Build one classifier that predict all the labels by same X. i tried: clf0 = ak.StructuredDataCla

Models in Tensorflow Federated get stucked at 0.1 accuracy

I'm trying train a federated model for the mnist dataset. I am using the code avaible at https://www.tensorflow.org/federated/tutorials/simulations for the setu

Training loss much lower than test loss even though it's using the same data

I'm using the same data for training and testing (which isn't best practice), and in theory the loss should be exactly the same. However, when training, my loss

SMOTE_NC function in R: error in the ouput

thank you in advance for your time! I'm having some trouble with the SMOTE_NC function in R (https://rdrr.io/github/dongyuanwu/RSBID/man/SMOTE_NC.html). Shortly

Hidden TPU nodes

What do the HIDDEN TPU nodes states, specified in this page, exactly represent and mean? The TPU states specs for the hidden states are a bit too vague for me:

Every time I train my CNN on matlab, is it remembering the old weights from the previous time I trained it? Or does it reset them?

So for example, I have trained a CNN on my data using a learning rate of 0.0003 and 10 epochs, with a minibatch size of 32. After training it, lets say I get an