Skip to content

Commit 21c1ee9

Browse files
committed
Small text tweaks
1 parent cf47857 commit 21c1ee9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ vuodelle 2023 on ennustettu lineaarisen regressiomallin avulla,
8787
käyttäen Scikit-learn-kirjastoa. Tämä versio on tiedostossa
8888
`ev_counts_regression.py`.
8989

90+
Ennustemalli on sovellettu Real Python -sivuston artikkelista
91+
[Linear Regression in Python](https://realpython.com/linear-regression-in-python/).
92+
9093
Aktivoi ensin Python-virtuaaliympäristö ja asenna Scikit-learn:
9194

9295
source venv/bin/activate

ev_counts_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
import numpy as np
4646
from sklearn.linear_model import LinearRegression
4747

48-
x_arr = []
48+
x_arr = [] # 0, 1, 2, ... = 2016-01, 2016-02, 2016-03...
4949
x_val = 0
50-
y_arr = []
50+
y_arr = [] # rekisteröintimäärät
5151
leftover_count = 0 # montako kuukautta on vailla dataa
5252
for year in years:
5353
# Data puuttuu viimeiseltä vuodelta.

0 commit comments

Comments
 (0)