How to starting with Machine Learning
The following are 5 steps for starting with machine learning:
Step-1: Decide to work with Machine Learning
At first, you have to decide to work with machine learning. As machine learning becoming the most attractive field in computer science, it's also a choice of millions of programmers.Step-2: Just pick a process-
Supervised Learning or Unsupervised Learning-based work you would like to do.
Step-3: Choose Tool
It is very important that you choose a tool for machine learning. There are two well-known tools for a machine is MATLAB and Python. Here python is a programming language that acts like natural language. Though MATLAB has reach libraries and resources, Python is also wide-spreading tools for machine learning.Sample Code for MATLAB:
% Remove unnecessary double quotes from certain attributes bank = datasetfun(@removequotes,bank,'DatasetOutput',true); % Convert all the categorical variables into nominal arrays [nrows, ncols] = size(bank); category = false(1,ncols); for i = 1:ncols if isa(bank.(names{i}),'cell') || isa(bank.(names{i}),'nominal') category(i) = true; bank.(names{i}) = nominal(bank.(names{i})); end end % Logical array keeping track of categorical attributes catPred = category(1:end-1); % Set the random number seed to make the results repeatable in this script rng('default');
Sample Code for Python
# Python versionimport sysprint('Python: {}'.format(sys.version))# scipyimport scipyprint('scipy: {}'.format(scipy.__version__))# numpyimport numpyprint('numpy: {}'.format(numpy.__version__))# matplotlibimport matplotlibprint('matplotlib: {}'.format(matplotlib.__version__))# pandasimport pandasprint('pandas: {}'.format(pandas.__version__))# scikit-learnimport sklearnprint('sklearn: {}'.format(sklearn.__version__))
Comments
Post a Comment