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
3 answers

Error: 'too many values to unpack (expected 2) when applying a function

I create a function and when i apply it to my dataframe, it returns the error. Could anyone help me with that? def accompany_alone(passenger): sib, parch = passenger if sib >0: return 'With Family' elif parch >0: return…
Alexia.W
  • 13
  • 3
0
votes
1 answer

Python - TypeError: 'DataFrame' object is not callable

I'm trying to run the following Python script on Spyder Python 3.7. I am very new to python and this is my first time attempting to run a program this complicated: import pandas as pd import matplotlib.pyplot as plt import matplotlib.image as…
Niyya Té
  • 71
  • 1
  • 1
  • 7
0
votes
1 answer

How to fetch data to train my neural network model in Kaggle?

I am trying to build a convolution neural network which classifies between cats and dogs,to train that network I am using Kaggle as a tool ,I have uploaded all the data sets consisting of 8000 training set and 2000 testing set. Problem is how to…
0
votes
0 answers

KERAS: AttributeError: 'BatchDataset' object has no attribute 'ndim' , Tensorflow image segmentation demo does not work on my anaconda

I know there is an issue with the line: history = model.fit(train_ds, steps_per_epoch=int(np.ceil(num_train_examples / float(batch_size))), epochs=epochs, validation_data=val_ds, …
Helena Williams
  • 73
  • 2
  • 10
0
votes
1 answer

impute data based on fitted linear model

I am looking at data from this kaggle competition. I focus on these 2 columns: LotArea LotFrontage Here LotFrontage has missing values whereas LotArea has not. Both variables are very correlated. So I thought I fit a linear regression model and…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
0 answers

colab runtime died, automatically restarting

when I am trying to do Adaboosting in Colab for a kaggle competition, the project is here https://www.kaggle.com/c/competitive-data-science-predict-future-sales, it will definitely "runtime died, automatically restarting". Then, I googled some…
Michael
  • 529
  • 1
  • 8
  • 22
0
votes
1 answer

Unable to Generate creds for the Drive FUSE library

I decide to use colab and google-drive-ocamlfuse to link my project to my drive, after reading a blog, the reference is herehttp://medium.com/@burakteke/tutorial-on-using-google-colab-for-kaggle-competition-620393c22821 I have fiexed its first part…
Michael
  • 529
  • 1
  • 8
  • 22
0
votes
1 answer

Stanford Cars Dataset Annotations missed

I need help, I am currently working a neural network for object detection. I'm using standford cars dataset from Kaggle as my training and testing dataset. but I have a problem in the annotations. the ground truth boxes are not covering the entire…
Kevin A.S.
  • 43
  • 1
  • 3
0
votes
2 answers

Kaggle competition submission error : The value '' in the key column '' has already been defined

This is my first time participating in a kaggle competition and I'm having trouble submitting my result table. I made my model using gbm and made a prediction table like below. the submission file has 2 column named 'fullVisitorId' and…
Jean
  • 75
  • 2
  • 11
0
votes
0 answers

AttributeError: 'list' object has no attribute 'read'

Getting issue for the following code. import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt import seaborn as sns # visualization tool from subprocess import…
0
votes
3 answers

ValueError: "metrics can't handle a mix of binary and continuous targets" with no source

I'm a beginner in Machine Learning and I'm trying to learn by working through Kaggle's Titanic problem. From what I know, I've made sure that the metrics are in sync with one another but of course I blame myself for this problem and not Python.…
Onur-Andros Ozbek
  • 2,998
  • 2
  • 29
  • 78
0
votes
1 answer

kaggle: Charts plotted using Altair visualization library did not show up after commit

I am using Altair Visualization library for plotting charts in a kaggle kernel. When I run cell by cell, the charts show up. But when I commit the notebook and see the result, the charts are not shown. I checked the altair version using the…
Manoj Kumar G
  • 492
  • 8
  • 18
0
votes
1 answer

How to use NLTK dataset in Kaggle kernel?

How do I download nltk stopwords in online server Jupyter notebook? In the local host, we can easily type nltk.download and downloading starts but in online Kaggle server notebook, nltk.download doesn't work.
Aim_headshot
  • 111
  • 1
  • 6
0
votes
1 answer

Creating Kernel using Julia

I'm very new here, trying to create kernel using Julia language, but looks the only options I've are Python and R, I even tried to uploaded existing Jupyter file created for using Julia, but it got uploaded as Python! how can I create the kernel…
Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
0
votes
1 answer

Input contains NaN, infinity or a value too large.. when using gridsearchcv, scoring = 'neg_mean_squared_log_error'

I was working on a Kaggle data set 'Santander Value Prediction Challenge' lasso = Lasso() lasso_para = {'alpha' :[0.001,0.01,0.02]} gs = GridSearchCV(estimator = lasso, param_grid = lasso_para, cv = 10, …
Jayden
  • 35
  • 2
  • 5