Category : kaggle

I am trying to get my model to fit values from apple stock data that I imported from Kaggle. Here’s a link to the data: https://www.kaggle.com/tarunpaparaju/apple-aapl-historical-stock-data Here’s my code: import pandas as pd from sklearn.tree import DecisionTreeClassifier stock_data = pd.read_csv(r"C:UsersrenucDocumentsRohanJupyterApple Stockapple_stock_history.csv", skipinitialspace = True) X = stock_data.drop(columns=[‘Date’, ‘Close/Last’, ‘High’, ‘Low’]) y = stock_data.drop(columns=[‘Date’, ‘Volume’, ‘Open’]) ..

Read more

When I run the following code in my Kaggle notebook, !pip install opendatasets –upgrade –quiet import opendatasets as od download_url ="https://www.kaggle.com/heesoo37/120-years-of-olympic-history-athletes-and-results" od.download(download_url) It then asks me for my kaggle username and API key. After I pop in my credentials it’s supposed to download the dataset. Was working fine till yesterday, however today it’s returning the ..

Read more

I tried to run this code on kaggle. os.makedirs(‘/root/.cache/torch/hub/checkpoints/’, exist_ok=True) !cp ‘../input/resnet50/resnet50.pth’ ‘/root/.cache/torch/hub/checkpoints/resnet50-19c8e357.pth’ !cp ‘../input/efficientnet-pytorch-pretrained/adv-efficientnet-b1-0f3ce85a.pth’ ‘/root/.cache/torch/hub/checkpoints/’ !cp ‘../input/efficientnet-pytorch-pretrained/adv-efficientnet-b5-86493f6b.pth’ ‘/root/.cache/torch/hub/checkpoints/’ !cp ‘../input/efficientnet-pytorch/efficientnet-b1-dbc7070a.pth’ ‘/root/.cache/torch/hub/checkpoints/’ !cp ‘../input/efficientnet-pytorch/efficientnet-b5-586e6cc6.pth’ ‘/root/.cache/torch/hub/checkpoints/’ This is the error I get cp: cannot stat ‘../input/resnet50/resnet50.pth’: No such file or directory cp: cannot stat ‘../input/efficientnet-pytorch-pretrained/adv-efficientnet-b1-0f3ce85a.pth’: No such file or directory cp: cannot stat ‘../input/efficientnet-pytorch-pretrained/adv-efficientnet-b5-86493f6b.pth’: No such ..

Read more

I’m trying to follow the Kaggle Monet CycleGAN Tutorial and in the first block of code where we are importing the libraries, one of them is kaggle_datasets. I have pip installed Kaggle, but when I try to import kaggle_datasets I get the error:ModuleNotFoundError: No module named ‘kaggle_datasets’. I tried pip install kaggle_datasets and pip install ..

Read more

When I run the following code in Jupyter Lab import numpy as np from sklearn.feature_selection import SelectKBest,f_classif import matplotlib.pyplot as plt predictors = ["Pclass","Sex","Age","SibSp","Parch","Fare","Embarked","FamilySize","Title","NameLength"] selector = SelectKBest(f_classif,k=5) selector.fit(titanic[predictors],titanic["Survived"]) Then it went errors and note that ValueError: could not convert string to float: ‘Mme’,details are like these: ————————————————————————— ValueError Traceback (most recent call last) C:UsersADMINI~1AppDataLocalTemp/ipykernel_17760/1637555559.py in ..

Read more