IIS_2023_1/malkova_anastasia_lab_5/main1.py
2023-11-17 00:28:29 +04:00

14 lines
272 B
Python

from dataset import load_dataset
from fit import fit_models
from ranks import calc_mean, get_ranks
x, y, names = load_dataset()
lm, ridge, lasso, rfe, f = fit_models(x, y)
ranks = get_ranks(lm, ridge, lasso, rfe, f, names)
mean = calc_mean(ranks)
print("MEAN", mean)