Skip to main content

Machine Learning Project : model 1 - helpcodes.me

 Machine Learning Project : model 1 - Bytecode.technilesh.com Python

we are going to build an model for Machine learning and if want Video explanination 

  • We are importing all libraries which are require that numpy , pandas ,  matlibplot & sklearn .
  • initially we take the data preprocessing and i already provide the overview and idea for data preprocessing .after that we create linear regression using the sklearn liberaries class Linear Regression . using object ' Regressor  ' we call the class  .after that we call the method of Linear Regressor class Fit Method which fit the train dataset of  X ,Y to model .using Linear Regression we train the Model and now we have to provide test Data set to get prediction ,so again we used Predicts method of Linear Regression class and pass X_test data set and we get the Y_Prediction.

# template is heavnly need and also feature scaling is not need for mant time but if required we used

import numpy as np
import matplotlib.pyplot as plot
import pandas as pd


#import the data sets
dataset = pd.read_csv('data.csv')
X = dataset.iloc[: , :-1].values
Y = dataset.iloc[: ,:1].values

#split the set to traning and test sets

from sklearn.model_selection import train_test_split
X_train,X_test,Y_train,Y_test = train_test_split(X,Y,test_size=0.2# test size should be displayed
print(Y_test)
#model trainng so we used the class of sklearn i.e. Linear Regression 
from sklearn.linear_model import LinearRegression
regressor = LinearRegression()  # we call the class using the object regressor
regressor.fit(X_train,Y_train)
# we used fit method to fit the data in theregressor i.e linear regression
# finally we train model and made an model now pass the test data to find prediction 

Y_Pred = regressor.predict(X_test) # we used predict method which take parameter of test class and using linear regresson find the resiu
print(Y_Pred)



https://youtu.be/fqVHp6jrsJc

Comments

Post a Comment

Popular posts from this blog

what gaming development require ,how the game developed ? -machinelearningtechnilesh

  What is gaming development & requirement? how the game developed? Hellos guys today we are exploring the video gaming industry and how the game is developed by the gaming engineers. The video gaming industry is growing exponentially on a large scale. A large no of games is launched by the many video gaming companies games like GTA 5 ( All series 1,2,3,4,5) by Rockstar studio & Cricket (2007,2010) by EA sports.The game development is also a big future for engineers. Today we are exploring the path to develop the game and which programming language is required and which skill do have to become a gaming developer.  Table Of Contents C# (C Sharp ) The best language for game development is c#. This language is similar to java and c,c++ programming. The Language is best because it used in AR & VR and ios development also. The best part of this programming language is the OOP (object-oriented programming) .this language works on .NET Frameworks. To build a game or AR ...

Sentiment Analysis using NLP Libraries -machinelearningtechnilesh

Doing Sentiment Analysis using NLP Libraries Conclusion from the Frist Approach : Sentiment Analysis using NLP Libraries (Unsupervised learning ) : result and analysis:  1) AFINN lexicon Model Performance metrics: ------------------------------ Accuracy: 0.71 Precision: 0.73 Recall: 0.71 F1 Score: 0.71 The Accuracy is 71% and F1 score tell about the performance of the that is 72%.that getting success is 72%. 2) SentiWordnet Model Performance metrics: ------------------------------ Accuracy: 0.69 Precision: 0.69 Recall: 0.69 F1 Score: 0.68 The Accuracy is 71% and F1 score tell about the performance of the that is 72%.that getting success is 72%. 3) VADER Model Performance metrics: ------------------------------ Accuracy: 0.71 Precision: 0.72 Recall: 0.71 F1 Score: 0.71 The Accuracy is 71% and F1 score tell about the performance of the that is 72%.that getting success is 72%. From comparing all three unsupervised model the AFFIN is best model because the precise value is greater than...

Computer Networks All Basic in one Blog :machinelearningtechnilesh

 . A computer network is formed by two or more devices connected together, these devices might be connected to share data to do some computations together or to share the resources. For example, a simple network where two computers are connected and one printer is connected and these both computers want to give command to the printer. So Resource Sharing is happening Do you do computer networks, computer networks are in fact everywhere they are in our office, they are in our home. In home, we might have multiple devices like laptops, Alexa, or other devices which are connected in a network. in office, you often see networks, your computers connected through a switch or any other device like router, and they form a network. So there are many, many networks that exist. In this course, we are going to focus mainly on internet, the largest network, almost half of the world's population is connected to the internet. In fact, most of our home devices, our office devices, they are connect...