This file contains hidden or 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
def createRegression(samples,variavel_numbers, n_noise): | |
from sklearn.datasets import make_regression | |
x, y = make_regression(n_samples=samples, n_features=variavel_numbers, noise=n_noise) | |
return x, y | |
if __name__ =='__main__': | |
from sklearn.linear_model import LinearRegression | |
from sklearn.model_selection import train_test_split | |
from matplotlib import pyplot as plt |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Experience': [2, 3, 5, 13, 8, 16, 11, 1, 9], | |
'Salary': [15, 28, 42, 64, 50, 90, 58, 8, 54] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Experience': [2, 3, 5, 13, 8, 16, 11, 1, 9], | |
'Salary': [15, 28, 42, 64, 50, 90, 58, 8, 54] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Experience': [2, 3, 5, 13, 8, 16, 11, 1, 9], | |
'Salary': [15, 28, 42, 64, 50, 90, 58, 8, 54] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Experience': [2, 3, 5, 13, 8, 16, 11, 1, 9], | |
'Salary': [15, 28, 42, 64, 50, 90, 58, 8, 54] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Experience': [2, 3, 5, 13, 8, 16, 11, 1, 9], | |
'Salary': [15, 28, 42, 64, 50, 90, 58, 8, 54] | |
} | |
) |
This file contains hidden or 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
import pandas as pd | |
with open('../datasets/Galton_Dataset.txt', 'r') as f: | |
data = pd.read_table(f, sep='\s+') | |
print(data.head(10)) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Grade':[50, 50, 46, 95, 50, 5, 57, 42, 26, 72, 78, 60, 40, 17, 85], | |
'Salary':[50000, 54000, 50000, 189000, 55000, 40000, 59000, 42000, 47000, 78000, 119000, 95000, 49000, 29000, 130000] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Grade':[50, 50, 46, 95, 50, 5, 57, 42, 26, 72, 78, 60, 40, 17, 85], | |
'Salary':[50000, 54000, 50000, 189000, 55000, 40000, 59000, 42000, 47000, 78000, 119000, 95000, 49000, 29000, 130000] | |
} | |
) |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'Grade':[50, 50, 46, 95, 50, 5, 57, 42, 26, 72, 78, 60, 40, 17, 85], | |
'Salary':[50000, 54000, 50000, 189000, 55000, 40000, 59000, 42000, 47000, 78000, 119000, 95000, 49000, 29000, 130000] | |
} | |
) |
OlderNewer