Questions tagged [kaggle]

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

Relating to the following Kaggle data science categories:

1115 questions
13
votes
2 answers

What is difference between eval_metric and feval in xgboost?

What is difference between feval and eval_metric in xgb.train, both parametrs are only for evaluation purpose. Post from Kaggle gives some insight…
Qbik
  • 5,885
  • 14
  • 62
  • 93
13
votes
4 answers

Error: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte

I am trying to do the following kaggle assignmnet. I am using gensim package to use word2vec. I am able to create the model and store it to disk. But when I am trying to load the file back I am getting the error below. -HP-dx2280-MT-GR541AV:~$…
user168983
  • 822
  • 2
  • 10
  • 27
12
votes
1 answer

Validation and Testing accuracy widely different

I am currently working on a dataset in kaggle. After training the model of the training data, I testing it on the validation data and got an accuracy of around 0.49. However, the same model gives an accuracy of 0.05 on the testing data. I am using…
12
votes
3 answers

subprocess python filenotfounderror: [winerror 2]

I've been using Jupyter Notebook to learn Principal Component Analysis from kaggle), but when I run this code from subprocess import check_output print(check_output(["ls", "../input"]).decode("utf8")) I got an error…
learing
  • 123
  • 1
  • 1
  • 5
12
votes
2 answers

xgboost: AttributeError: 'DMatrix' object has no attribute 'handle'

The problem is really strange, because that piece of worked pretty fine with other dataset. The full code: import numpy as np import pandas as pd import xgboost as xgb from sklearn.cross_validation import train_test_split # # Split the Learning…
Rocketq
  • 5,423
  • 23
  • 75
  • 126
12
votes
1 answer

ValueError: unknown is not supported in sklearn.RFECV

I was trying to narrow down the number of features really relevant for my classifier using rfecv. This is the code I have written import sklearn import pandas as p import numpy as np import scipy as sp import pylab as pl from sklearn import…
XConfusion
  • 345
  • 1
  • 4
  • 13
11
votes
3 answers

Object is enumerable but not indexable?

Problem summary and question I'm trying to look at some of the data inside an object that can be enumerated over but not indexed. I'm still newish to python, but I don't understand how this is possible. If you can enumerate it, why can't you access…
Phillip Geltman
  • 195
  • 1
  • 13
11
votes
4 answers

kaggle kernel: Your kernel cannot use internet access for this competition

I'm a recruit of kaggler. I fork a open kernel and commit, when I submit my output, the button Submit to Competition not work, and info that "Your kernel cannot use internet access for this competition".
Colin Wang
  • 771
  • 8
  • 14
11
votes
5 answers

Inserting comments into jupyter notebook

I hope this is not a redundant question, but I was not able to find a proper answer and tutorial. I am currently learning Data Science and therefore use kaggle competition for practice and jupyter notebook to tackle them (as it is visually more…
calicationoflife
  • 281
  • 2
  • 8
  • 17
11
votes
4 answers

'pip install kaggle' works fine - but 'kg command not found'

I installed kaggle-cli just fine.. everything went smoothly or so pip says. But when I try to run the kg command or just kg --version, I get kg command not found I can see Kaggle in Python system packages and all the py and pyc files are there.…
9_Dave_9
  • 694
  • 1
  • 7
  • 20
11
votes
3 answers

How to get rid of warning "DeprecationWarning generator 'ngrams' raised StopIteration"

While working on a Kaggle notebook I ran into an issue. The following code block: from nltk import ngrams def grams(tokens): return list(ngrams(tokens, 3)) negative_grams = preprocessed_negative_tweets.apply(grams) resulted in a red box…
langkilde
  • 1,473
  • 1
  • 20
  • 37
11
votes
1 answer

Multi label regression in Caffe

i am extracting 30 facial keypoints (x,y) from an input image as per kaggle facialkeypoints competition. How do i setup caffe to run a regression and produce 30 dimensional output??. Input: 96x96 image Output: 30 - (30 dimensions). How do i setup…
pbu
  • 2,982
  • 8
  • 44
  • 68
11
votes
6 answers

C5.0 decision tree - c50 code called exit with value 1

I am getting the following error c50 code called exit with value 1 I am doing this on the titanic data available from Kaggle # Importing datasets train <- read.csv("train.csv", sep=",") # this is the structure str(train) Output :- …
zephyr
  • 1,775
  • 6
  • 20
  • 31
10
votes
1 answer

Google colaboratory use kaggle, server version 1.5.6 , client version 1.5.4, failed to upgrade

I want to use the kaggle API in google colaboratory. The client installed is 1.5.4, the server is 1.5.6. After running install and upgrade kaggle via pip, the system still calls the version 1.5.4 I have tried installing and upgrading with pip the…
bsaldivar
  • 175
  • 2
  • 6
10
votes
4 answers

R - Image Plot MNIST dataset

My data set is the MNIST from Kaggle I am trying to use the image function to visualise say the first digit in the training set. Unfortunately I am getting the following error: >image(1:28, 1:28, im, col=gray((0:255)/255)) Error in…
Anurag H
  • 909
  • 11
  • 28
1
2
3
74 75