kaggle

How can i import data from kaggle while not downloading it?

How can i import data from kaggle while not downloading it? Question: I want to import data from kaggle to my Notebook while not having to download it (So if i share my .ipynb u only need to run the code and it will download it from the internet), but i can’t figure out if …

Total answers: 1

Kaggle Data Clean Up

Kaggle Data Clean Up Question: I am trying to clean unwanted values from my dataset, I am currently trying to clean the gender column and there are a lot of ‘joke’ answers that I wish to remove but currently I only know how to remove these one by one. Is there a more efficient way …

Total answers: 1

Function turns Values to NaN unwanted

Function turns Values to NaN unwanted Question: I wrote a function to fill NaN with Values, but instead this function first fills the NaN with values and then deletes every value that was in the list before I did the function def preprocessing(df): median_male_3= df[(df["Sex"]=="male") & (df["Pclass"] ==3 )]["Age"].median() median_male_2= df[(df["Sex"]=="male") & (df["Pclass"] ==2 )]["Age"].median() …

Total answers: 2

Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required

Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required Question: This error keeps coming when I try to find MI values. My code is as follows X_new = X.copy() X_new = X_new.fillna(0) y = data.SalePrice def make_mi_scores(X, y): X = X.copy() for colname in X.select_dtypes(["object", "category"]): X[colname], _ = X[colname].factorize() …

Total answers: 1

Is LightGBM available for Mac M1?

Is LightGBM available for Mac M1? Question: My goal is to learn a notebook. It has recall 97% while I am struggling with F1 Score ‘Attrited Customer’ 77.9%. The problem is the notebook uses LightGBM. I am unable to install LightGBM. What I’ve tried: pip install lightgbm -> it throws error python setup.py egg_info did …

Total answers: 1

Convert folder of images with labels in CSV file into a tensorflow Dataset

Convert folder of images with labels in CSV file into a tensorflow Dataset Question: This clothing dataset (from Kaggle) when downloaded looks something like the below: Labels inside a .csv file Images in a subdirectory +-dataset/ | +-images.csv | +-images/ | +-d7ed1d64-2c65-427f-9ae4-eb4aaa3e2389.jpg | +-5c1b7a77-1fa3-4af8-9722-cd38e45d89da.jpg | +-… <additional files> I would like to load this into …

Total answers: 2

Why does my Ml CNN Kaggle Cats / Dogs prection only spit out an error?

Why does my Ml CNN Kaggle Cats / Dogs prection only spit out an error? Question: I´m pretty new to ML and Computer Vision.I am trying to do a categotrial prediction for Cats/ Dogs 0 as the Cats and 1 as the Dogs. But my model.fit() function spits out this error. … ValueError: Input 0 …

Total answers: 2

While converting a PIL image into a tensor why the pixels are changing?

While converting a PIL image into a tensor why the pixels are changing? Question: transform = transforms.Compose([transforms.ToPILImage(), transforms.ToTensor()]) Before applying the transformation After applying the transformation Q.1 Why the pixel values are changed? Q.2 How to correct this? Asked By: atin || Source Answers: Q1: transforms.ToTensor() of torchvision normalizes your input image, i.e. puts it …

Total answers: 2

One-Hot Encoding Question – Concept and Solution to My Problem (Kaggle Dataset)

One-Hot Encoding Question – Concept and Solution to My Problem (Kaggle Dataset) Question: I’m working on an exercise in Kaggle, it’s on their module for categorical variables, specifically the one – hot encoding section: https://www.kaggle.com/alexisbcook/categorical-variables I’m through the entire workbook fine, and there’s one last piece I’m trying to work out, it’s the optional piece …

Total answers: 2

Can't find kaggle.json file in google colab

Can't find kaggle.json file in google colab Question: I’m trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their datasets. (https://github.com/Kaggle/kaggle-api) However, when calling the command “kaggle competitions download -c imagenet-object-localization-challenge” …

Total answers: 6