mirror of
https://github.com/RYDE-WORK/lnp_ml.git
synced 2026-03-21 09:36:32 +08:00
按照数据预处理脚本变更修正其他相应脚本
This commit is contained in:
parent
72c292a91f
commit
b74f3ab4b2
@ -366,7 +366,7 @@ def run_optuna_cv(
|
|||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
input_path: Path = INTERIM_DATA_DIR / "internal_corrected.csv",
|
input_path: Path = INTERIM_DATA_DIR / "internal.csv",
|
||||||
output_dir: Path = MODELS_DIR / "final_optuna",
|
output_dir: Path = MODELS_DIR / "final_optuna",
|
||||||
# CV 参数
|
# CV 参数
|
||||||
n_folds: int = 3,
|
n_folds: int = 3,
|
||||||
|
|||||||
@ -486,7 +486,7 @@ def run_inner_optuna(
|
|||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
input_path: Path = INTERIM_DATA_DIR / "internal_corrected.csv",
|
input_path: Path = INTERIM_DATA_DIR / "internal.csv",
|
||||||
output_dir: Path = MODELS_DIR / "nested_cv",
|
output_dir: Path = MODELS_DIR / "nested_cv",
|
||||||
# CV 参数
|
# CV 参数
|
||||||
n_outer_folds: int = 5,
|
n_outer_folds: int = 5,
|
||||||
|
|||||||
@ -26,7 +26,7 @@ app = typer.Typer()
|
|||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
input_path: Path = INTERIM_DATA_DIR / "internal_corrected.csv",
|
input_path: Path = INTERIM_DATA_DIR / "internal.csv",
|
||||||
output_dir: Path = PROCESSED_DATA_DIR,
|
output_dir: Path = PROCESSED_DATA_DIR,
|
||||||
train_ratio: float = 0.56,
|
train_ratio: float = 0.56,
|
||||||
val_ratio: float = 0.14,
|
val_ratio: float = 0.14,
|
||||||
|
|||||||
@ -166,7 +166,7 @@ def amine_based_cv_split(
|
|||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
input_path: Path = INTERIM_DATA_DIR / "internal_corrected.csv",
|
input_path: Path = INTERIM_DATA_DIR / "internal.csv",
|
||||||
output_dir: Path = PROCESSED_DATA_DIR / "cv",
|
output_dir: Path = PROCESSED_DATA_DIR / "cv",
|
||||||
n_folds: int = 5,
|
n_folds: int = 5,
|
||||||
seed: int = 42,
|
seed: int = 42,
|
||||||
|
|||||||
@ -26,7 +26,7 @@ app = typer.Typer()
|
|||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
input_path: Path = INTERIM_DATA_DIR / "internal_corrected.csv",
|
input_path: Path = INTERIM_DATA_DIR / "internal.csv",
|
||||||
output_dir: Path = PROCESSED_DATA_DIR / "final",
|
output_dir: Path = PROCESSED_DATA_DIR / "final",
|
||||||
train_ratio: float = 0.9,
|
train_ratio: float = 0.9,
|
||||||
seed: int = 42,
|
seed: int = 42,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user