This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.cluster import KMeans | |
from sklearn.metrics import mean_squared_error | |
# read the train and test dataset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.neighbors import KNeighborsClassifier | |
from sklearn.metrics import accuracy_score | |
# read the train and test dataset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.naive_bayes import GaussianNB | |
from sklearn.metrics import accuracy_score | |
# read the train and test dataset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.svm import SVC | |
from sklearn.metrics import accuracy_score | |
from sklearn.metrics import mean_squared_error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.metrics import accuracy_score | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.metrics import accuracy_score | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.linear_model import LinearRegression | |
from sklearn.metrics import mean_squared_error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Never create booleans as objects.</p> | |
<p>Booleans and objects cannot be safely compared.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Display the value of Boolean(20 > 19):</p> | |
<button onclick="myFunction()">Try it</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math</h2> | |
<p>Math.floor(Math.random() * 20) returns a random integer between 0 and 19 (both |
NewerOlder