Skip to main content

a ML tools for easy use

Project description

Function Design

需要实现的功能:

  1. calculate_best_randomstate(): return score_matrix, bestrandoms; // 找出最高的randomstate,返回得分矩阵和randomstate;
  2. cut_head_score_matrix_list(): return score_matrix_head; //根据得分矩阵, 输出排名前n的randomstate
  3. learning_curve_by_score_matrix_head(): return model_*i[randomstate]; //根据排名前n的randomstate/score_matrix, 求出i个模型, 并输出i个学习率曲线和3d模型
  4. return_nice_model(): return model; //根据randomstate求出模型,输出模型得分(All R Square, MSE, RMSE, Max Error),返回模型对象
  5. 绘制3D图,三视图也输出,共四张
  6. 绘制2D图,对比同一供应商下不同粒径的模型,x为VF%,Y为TC,同表中不同线为粒径
  7. 绘制2D图,对比同一粒径下不同供应商的模型。

calculate_best_randomstate(degree, algo, x, y, times):

找出最高的randomstate,返回得分矩阵和

参数解析:

  • degree: 模型的维度/最高次方/升维指数
  • algo: 使用的算法,从sklearn中导入
  • x,y: 数据集合输入输出的划分
  • times: 最大Randomstate指数, 训练次数

返回参数: return score_matrix, bestrandoms

  • score_matrix: 本次训练所有的分数以及对应的randomstate
  • bestrandoms: 在times次循环训练中,得分最高的randomstate

cut_head_score_matrix_list(score_matrix, top)

根据得分矩阵, 输出排名前n的randomstate 参数解析:

  • score_matrix: 从calculate_best_randomstate()返回得到
  • top: 输出排在前面的得分

返回参数:return score_matrix_head

  • score_matrix_head:排在前top的radomstate以及对应的分数

learning_curve_by_score_matrix_head()

return_nice_model(degree, algo, x, y, bestrandoms)

根据randomstate求出模型,输出模型得分(All R Square, MSE, RMSE, Max Error),返回模型对象

参数解析:

  • degree: 模型的维度/最高次方/升维指数
  • algo: 使用的算法,从sklearn中导入
  • x,y: 数据集合输入输出的划分
  • bestrandoms: 得分最高的Randomstate指数, 从calculate_best_randomstate()返回得到

返回参数:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jflmlpack-0.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jflmlpack-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file jflmlpack-0.0.1.tar.gz.

File metadata

  • Download URL: jflmlpack-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for jflmlpack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 14416efc23e629501d4cfc5ba8d82dfa3dd7cc698b4efaad9a6faba03d9c3b88
MD5 2665f3876584938cfa03cd84b2c825e1
BLAKE2b-256 e637aa42d2361fc8af5538da6a5c1a82a0e232aff6a6ea714c7d2e70acbd0b82

See more details on using hashes here.

File details

Details for the file jflmlpack-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jflmlpack-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for jflmlpack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d94c7232f31735f7dfcb1e0eb9c15d925a813a12745a3bd3daeab37dba9db602
MD5 ddd3bf3ecce3ada708f824f762096ddb
BLAKE2b-256 1d71c7653d33689106c28cb5019082000cef741e8a0eb94179eca64c27eb65e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page