9951 explained code solutions for 126 technologies


python-scikit-learnLoad Boston housing dataset


import numpy as np
from sklearn import datasets

X, y = datasets.load_boston(return_X_y=True)ctrl + c
import numpy

import Numpy module

from sklearn import

import module from scikit-learn

X, y

loaded features data (X) and target variable (y) values

datasets

predefined datasets to play with

load_boston

loads Boston housing dataset