Skip to content

Kageshimasu/target-encoding-with-smoothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

TargetEncoding with Smoothing

TargetEncodingとSmoothingを多分類対応で行います。

実装例

import pandas as pd 


training_df = pd.read_csv('./training_dataset.csv', sep=',')
prediction_df = pd.read_csv('./prediction_dataset.csv', sep=',')
smted = SmoothlyTargetEncodingDataloader(training_df,  prediction_df, '目的変数のカラム名')

 smted.get_training_dataset()  # 訓練データが手に入る
 smted.get_labels()  # 教師データが手に入る

About

TargetEncodingとSmoothingを多分類対応で行います。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages