Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- train/test
- polynomial regression
- variables
- break
- PANDAS
- PROJECT
- continue
- __init__
- multiple lines
- matplotlib
- Text mining
- machine learning
- data distribution
- start exercise
- SQL
- Github
- AS
- Default X points
- For loops
- matplotlib.pyplot
- Else
- pie charts
- line width
- MySQL
- Text Analytics
- error
- self parameter
- line color
- Python
- iterates
Archives
- Today
- Total
목록data distribution (1)
Data Science Explorer
Linear Regression It uses the relationship between the data-points to draw a straight line through all them. Example import matplotlib.pyplot as plt from scipy import stats x = [5,7,8,7,2,17,2,9,4,11,12,9,6] y = [99,86,87,88,111,86,103,87,94,78,77,85,86] slope, intercept, r, p, std_err = stats.linregress(x, y) def myfunc(x): return slope * x + intercept mymodel = list(map(myfunc, x)) plt.scatter..
Machine Learning
2023. 11. 15. 21:00