Questions tagged [kaggle]

Relating to Competitions, Datasets, Kernels, Learn, or Kaggle's API.

Relating to the following Kaggle data science categories:

1115 questions
0
votes
1 answer

I am having an import error while trying to load the module pynrrd in Kaggle

Excuse me if this is a simple question, but I'm new to Python. I'm trying to load the module "pynrrd" in Kaggle. I am getting import errors, I'm not sure why. Here is the code I'm testing: # Required modules import numpy as np !pip install…
An Ignorant Wanderer
  • 1,322
  • 1
  • 10
  • 23
0
votes
1 answer

Why does NLP feature matrix have two columns?

I'm trying out the Quora Insincere Questions Classification competition (late submission), but there's a weird error that I can't figure out. Here is my code (the relevant parts): def loss(predict, observed): a = predict*observed b =…
Ronan Venkat
  • 345
  • 1
  • 6
  • 12
0
votes
2 answers

Not able to change gender data to binary values

I am working through the Titanic competition. This is my code so far: import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split train =…
0
votes
1 answer

Getting a value error for Linear Regression model

I am trying to work through Kaggle's Titanic competition. While trying to apply the Linear Regression model to my code and checking its accuracy score, I get the following error on Pycharm: Traceback (most recent call last): File…
0
votes
1 answer

Losing output trained model in Kaggle after commit

I am new to kaggle. I have trained model for 8 hours. After training my model, I already saved my trained model. But, I clicked commit button. Now I want to load my trained model in order to do the submission. However, it's gone. Is there a way to…
0
votes
1 answer

unable to install the desired spacy version ==2.0.18 on kaggle

I want to uninstall the existing spacy in kaggle which kaggle by default download for us which is spacy == 2.1.3 but I want to install version==2.0.18 !pip uninstall spacy==2.1.3 but I got stock here Uninstalling spacy-2.0.18: Would remove: …
Suraj Ghale
  • 173
  • 1
  • 5
  • 13
0
votes
2 answers

Run trained kaggle model in jupyter notebook

I have build and trained the model in kaggle and have downloaded it's output. How can I now run the trained model locally in jupyter notebook to make prediction ?
Bishwa Karki
  • 359
  • 4
  • 20
0
votes
0 answers

Is it possible to download test data with real label from Kaggle competition?

For the Kaggle competitions that entail classification problems, a train and test dataset are given. Train data is labeled, but test data is not labeled. It only contains sample data and the model is checked on Kaggle servers and an accuracy or f1…
anegru
  • 1,023
  • 2
  • 13
  • 29
0
votes
2 answers

ValueError The minimum number of groups for any class cannot be less than 2

ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2. this is the error I got from following code # List of machine learning algorithms that will be used…
user11173832
0
votes
1 answer

how to access kaggle data after downloading with terminal?

I have downloaded the data using kaggle competitions download -c pubg-finish-placement-prediction but I am confused on how to access it in my python scripts that I would be creating ?
Omkar Dixit
  • 746
  • 1
  • 9
  • 19
0
votes
1 answer

Dimensions must be equal, but are 64 and 1 for 'Conv2D_13' (op: 'Conv2D') with input shapes: [?,28,28,64], [3,3,1,64]

I am doing data Digital recognition in kaggle by using cnn. I am getting this error: Dimensions must be equal, but are 64 and 1 for 'Conv2D_13' (op: 'Conv2D') with input shapes: [?,28,28,64], [3,3,1,64]. I don't know why and the output shape…
0
votes
3 answers

Gaierror while importing pretrained vgg model on kaggle

initial_model = VGG19(weights='imagenet', pooling = max) I am trying to import a pre-trained VGG model in keras on kaggle. I run through an gaierror which was unfamiliar. Downloading data from …
Mav Wong
  • 3
  • 2
0
votes
2 answers

Loading Amazon fine food reviews dataset from kaggle into colab notebook

I'm trying to import Amazon fine food reviews dataset into colab notebook, but it is not getting loaded when I list the datasets, how to get this dataset? Any help would be appreciated. I followed this link Using kaggle datasets into Google…
0
votes
4 answers

Unable to use "scheme" attribute when plot GeoDataFrame

I am rerunning the code in https://www.kaggle.com/skalskip/using-regression-to-predicting-earnings-in-france under Python 3.6, and in the plotting stage I ran the following code: fig, ax = plt.subplots(1, figsize=(15,14)) ax.set_title('Salary by…
IsaIkari
  • 1,002
  • 16
  • 31
0
votes
0 answers

ValueError: Error when checking target: expected dense_1 to have shape (10,) but got array with shape (100,)

I need to build an inception module in keras and train cifar100 data set with that. using the below code: from keras.datasets import cifar100 (X_train, y_train), (X_test, y_test) = cifar100.load_data() X_train = X_train.astype('float32') X_test =…
user11092839