Python Forum
How from sklearn.datasets import load_diabetes change to import to CSV file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How from sklearn.datasets import load_diabetes change to import to CSV file
#1
#I test and check some predictions on the Hospital data set on CSV file rather than loading data set like diabetes data set.
## I want to import a CSV file instead of load as -----> Where sklearn should be kept in mind for data preprocessing
 from sklearn.datasets import load_diabetes 
How such changes had been made while remove load_diabetes and add a csv file i search but i did not find such answer
import numpy as np
from sklearn.datasets import load_diabetes
seed = 43
np.random.seed(seed)
print("Loading data")
    diabetes = load_diabetes()
    y = diabetes.target
    X = diabetes.data
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Puzzling import issue that I have no idea how to solvr starseeker 3 470 Feb-21-2024, 05:07 PM
Last Post: deanhystad
  Different Ways to Import Modules RockBlok 2 501 Dec-11-2023, 04:29 PM
Last Post: deanhystad
  Dogs Vs Cats Clean Datasets and Corruprtion hatflyer 4 528 Nov-13-2023, 08:08 PM
Last Post: hatflyer
  How secure is the use of "secret" import? ejwjohn 12 1,240 Nov-09-2023, 08:31 AM
Last Post: ejwjohn
  is import cointegration_analysis a recognized module mitcht33 1 424 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  problem in import module from other folder akbarza 5 1,380 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  logging: change log file permission with RotatingFileHandler erg 0 996 Aug-09-2023, 01:24 PM
Last Post: erg
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 710 Aug-06-2023, 01:09 AM
Last Post: aupres
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 6,595 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  I try to import Vpython and I get a "ZeroDivisionError" Jon2222 16 2,563 Jul-26-2023, 07:37 AM
Last Post: Jon2222

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020