Practical for IML
Aim 1: Explore any one Machine Learning tool (Scikit-learn) Program # Exploring Scikit-learn library import sklearn print ( "Scikit-learn version:" , sklearn.__version__) print ( "Scikit-learn is used for machine learning tasks such as:" ) print ( "Classification, Regression, Clustering, and Model Evaluation" ) Aim 2: NumPy basic operations Program import numpy as np # Convert list to 1D NumPy array list1 = [ 1 , 2 , 3 , 4 , 5 ] arr1 = np.array(list1) print ( "1D Array:" , arr1) # Create 3x3 matrix from 2 to 10 matrix = np.arange( 2 , 11 ).reshape( 3 , 3 ) print ( "3x3 Matrix:\n" , matrix) # Append values to array arr2 = np.append(arr1, [ 6 , 7 ]) print ( "Appended Array:" , arr2) # Reshape array from 3x2 to 2x3 arr3 = np.array([[ 1 , 2 ], [ 3 , 4 ], [ 5 , 6 ]]) reshaped = arr3.reshape( 2 , 3 ) print ( "Reshaped Array:\n" , reshaped) Aim 3: NumPy mathematical operations Program import numpy ...