image_output_1.png
from sklearn.linear_model import LinearRegression

import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

data = pd.read_csv('/kaggle/input/sinan-dataset/multiple_linear_regression_dataset.csv', sep=';')
data

from sklearn.linear_model import LinearRegression
linear_reg = LinearRegression()
x = data.deneyim.values.reshape(-1, 1)
y = data.maas.values.reshape(-1, 1)
linear_reg.fit(x, y)

import numpy as np
a = linear_reg.predict([[0]])
print('a: ', a)
a_ = linear_reg.intercept_
print('a_: ', a_)