TransWikia.com
  1. All Categories
  2. Data Science

Data Science : Recent Questions and Answers (Page 60)

Find answers to your questions about Data Science or help others by answering their Data Science questions.

How to classify all words in a sentence with a context?

I have the names of the companies (in Russian). The name can contain abbreviations, words with capital letters, words with lowercase letters, and mixed words. The model is trained according...

Asked on 08/05/2021 by Gleb Shigin

0 answer

ValueError: Error when checking input: expected dense_36_input to have shape (None, 12) but got array with shape (140, 2)

create modelmodel=Sequential()model.add(Dense(input_dim = 12, units = 10, activation='relu', kernel_initializer='uniform'))model.add(Dense(units = 8, activation='relu', kernel_initializer='uniform'))model.add(Dense(units = 1, activation='sigmoid', kernel_initializer='uniform'))print('Training the model...')Compile modelmodel.compile(optimizer='adam', loss='binary_crossentropy', metrics=['accuracy'])while running the model.fit()Fit the modelmodel.fit(X_train,y_train,batch_size=32,...

Asked on 08/05/2021

1 answer

Performing anomalie detection on a battery volatge using LSTM-RNN

I am trying to detect anomalies in a battery output voltage for one month. I have the next data frame, as it is shown the data is collected each minute...

Asked on 08/05/2021

1 answer

Neural network: does bias equal to zero, is the same as, a layer without bias?

Question as in the title. Does bias equal to zero, is the same as, removing bias from the layer? Here's a pytorch implementation to showcase what I mean.class MLP_without_bias(torch.nn.Module):...

Asked on 08/04/2021 by Kyle_397

1 answer

Reproducing randomForest Proximity Matrix from R package in Python

I am trying to port this little piece of R code to python:rf <- randomForest(features, proximity = T, oob.prox = T, ntree = 2000)dists <- as.dist(1 - rf$proximity)with parameters...

Asked on 08/04/2021

1 answer

Optimizing decision threshold on model with oversampled/imbalanced data

I'm working on developing a model with a highly imbalanced dataset (0.7% Minority class). To remedy the imbalance, I was going to oversample using algorithms from imbalanced-learn library. I had...

Asked on 08/04/2021

1 answer

How to set class-weight for imbalanced classes in KerasClassifier while it is used inside the GridSearchCV?

Could you please let me know how to set class-weight for imbalanced classes in KerasClassifier while it is used inside the GridSearchCV?# Use scikit-learn to grid search the batch...

Asked on 08/04/2021 by ebrahimi

1 answer

Python: Handling imbalance Classes in python Machine Learning

I have a dataset for which I am trying to predict target variables.Col1 Col2 Col3 Col4 Col5...

Asked on 08/04/2021

6 answer

How to download COCO dataset images?

I am trying to download the COCO dataset images using the following COCO API command:from pycocotools.coco import COCOimport requestscatIds = COCO.getCatIds(catNms=['person','dog', 'car'])...but am getting the following error message. Any...

Asked on 08/04/2021

2 answer

What is a reasonable standard deviation in accuracy between different train-test splits?

My model's performance depends on the train-test-split performed. I did 1000 train-test splits and had an average accuracy of 75.4 % and the accuracy had a standard deviation of 2.4...

Asked on 08/04/2021 by user5744148

0 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP