Skip to content

Kaggle - Mechanisms of Action (MoA) Prediction

Notifications You must be signed in to change notification settings

mtszkw/lish-moa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mechanisms of Action (MoA) Prediction

Final code for Kaggle lish-moa competition.

Pre-processing/feature engineering

Training

  • MultilabelStratifiedKFold instead of traditional sklearn KFold
  • Single NN model with only few linear layers (see /src/model.py),
  • SmoothBCEwLogits loss function for training (torch.nn.BCEWithLogitsLoss for validation)

Prediction

  • Prediciton clipping (np.clip(y_hat, 0.001, 0.999))
  • Averaging results from best folds (best val_loss checkpoint from each fold)

Additional data

!pip install ../input/iterativestratification/
from iterstrat.ml_stratifiers import MultilabelStratifiedKFold

(only for logging)
!pip install neptune-client