dscript.commands

dscript.commands.predict

See Prediction for full usage details.

dscript.commands.embed

See Embedding for full usage details.

Generate new embeddings using pre-trained language model.

dscript.commands.train

See Training for full usage details.

dscript.commands.evaluate

See Evaluation for full usage details.

Evaluate a trained model.

dscript.commands.evaluate.plot_eval_predictions(labels, predictions, path='figure')[source]

Plot histogram of positive and negative predictions, precision-recall curve, and receiver operating characteristic curve.

Parameters
  • y (np.ndarray) – Labels

  • phat (np.ndarray) – Predicted probabilities

  • path (str) – File prefix for plots to be saved to [default: figure]