Questions tagged [kaggle]

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

Relating to the following Kaggle data science categories:

1115 questions
9
votes
2 answers

Choosing the learning_rate using fastai's learn.lr_find()

I am going over this Heroes Recognition ResNet34 notebook published on Kaggle. The author uses fastai's learn.lr_find() method to find the optimal learning rate. Plotting the loss function against the learning rate yields the following figure: It…
Sheldon
  • 4,084
  • 3
  • 20
  • 41
9
votes
1 answer

Python3 CSV writerows, TypeError: 'str' does not support the buffer interface

I am translating the following Kaggle code into Python3.4: In the final lines when outputting a CSV file, predictions_file = open("myfirstforest.csv", "wb") open_file_object =…
ShanZhengYang
  • 16,511
  • 49
  • 132
  • 234
9
votes
3 answers

major memory problems reading in a csv file using numpy

I grabbed the KDD track1 dataset from Kaggle and decided to load a ~2.5GB 3-column CSV file into memory, on my 16GB high-memory EC2 instance: data = np.loadtxt('rec_log_train.txt') the python session ate up all my memory (100%), and then got…
vgoklani
  • 10,685
  • 16
  • 63
  • 101
8
votes
2 answers

Kaggle API issue "Could not find kaggle.json. Make sure it's located in......"

I am trying to use the Kaggle API to extract data from the kaggle website. I am using Ubuntu 18.04. When I enter the following command: kaggle competitions download -c home-credit-default-risk I get the following error: Traceback (most recent call…
I_Am_Yohan
  • 176
  • 1
  • 9
8
votes
1 answer

Pytorch tensor.save() produces huge files for small tensors from MNIST

I'm working with MNIST dataset from Kaggle challange and have troubles preprocessing with data. Furthermore, I don't know what are the best practices and was wondering if you could advise me on that. Disclaimer: I can't just use…
matwasilewski
  • 384
  • 2
  • 11
8
votes
1 answer

Dataset lost in google colab?

I am new to colab. I recently downloaded dataset from kaggle to google colab. In my next visit the dataset isn’t there and my kaggle installation is removed too. Does anyone know why ? I have tried looking in /content where i remember saving and…
ankus7890
  • 143
  • 1
  • 5
8
votes
7 answers

Error while importing Kaggle dataset on Colab

When executing the following lines, !pip install kaggle !kaggle competitions download -c dogs-vs-cats -p /content/ I got the following error messages, Traceback (most recent call last): File "/usr/local/bin/kaggle", line 7, in from…
Alan.L
  • 183
  • 2
  • 3
  • 7
8
votes
1 answer

What is the difference between xgboost, extratreeclassifier, and randomforrestclasiffier?

I am new to all these methods and am trying to get a simple answer to that or perhaps if someone could direct me to a high level explanation somewhere on the web. My googling only returned kaggle sample codes. Are the extratree and randomforrest…
vvv
  • 337
  • 3
  • 8
8
votes
3 answers

Pandas scatter_matrix - plot categorical variables

I am looking at the famous Titanic dataset from the Kaggle competition found here: http://www.kaggle.com/c/titanic-gettingStarted/data I have loaded and processed the data using: # import required libraries import pandas as pd import…
Geoffrey Stoel
  • 1,300
  • 3
  • 14
  • 24
8
votes
1 answer

convert jpg to greyscale csv using R

I have a folder of JPG images that I'm trying to classify for a kaggle competition. I have seen some code in Python that I think will accomplish this on the forums, but was wondering is it possible to do in R? I'm trying to convert this folder of…
barker
  • 1,005
  • 18
  • 36
7
votes
4 answers

Error in importing Cats-vs-Dogs dataset in Google Colab

While trying to download the "Cats_vs_Dogs" TensorFlow dataset using the tfds module, I get the following error DownloadError Traceback (most recent call last) in () 7 …
7
votes
2 answers

How can I import data downloaded from Kaggle to DBFS using Databricks Community Edition?

I managed to download datasets from Kaggle using Kaggle API. And the data was stored under the directory of /databricks/driver. %sh pip install kaggle %sh export KAGGLE_USERNAME=my_name export KAGGLE_KEY=my_key kaggle competitions download -c…
Memphis Meng
  • 1,267
  • 2
  • 13
  • 34
7
votes
1 answer

Is there any Command to Download data from particular folder from Kaggle Competition using kaggle API

I'm trying to download data from Kaggle Competition state-farm-distracted-driver-detection The dataset has following directory structure |-driver_imgs_list.csv |-sample-submission.csv |imgs | |test | |train | |c0 | |c1 | |c2 | …
7
votes
1 answer

How to convert the Ipython kernel on kaggle to pdf and download it?

I want to download all the simulation with code and respective output in a .pdf file. Is there any way that it can be possible? I'have tried downloading the Ipython notebook and opening it on my PC in jupyter notebook and then converting it to pdf.…
7
votes
1 answer

Unzip a 7z file in google collab?

I am trying to write a CNN on Kaggle’s Amazon from Space dataset. I can’t spend money now. So, I want to use Google collab. I have successfully downloaded the dataset using kaggle cli tool. But I am not able to extract the data. Please help…
lazyV
  • 83
  • 1
  • 2
  • 4
1 2
3
74 75