linear_svm

besca.tl.auto_annot.linear_svm(train, y_train)[source]

fits linear svm on training dataset

Parameters:
  • train (pd.DataFrame) – adata_train.X but scaled and as a dataframeelastic

  • y_train (pd.DataFrame) – one dimensional dataframe containing class label

Returns:

trained svm classifier

Return type:

sklearn.calibration.CalibratedClassifierCV