openprotein.umap.UMAPModel#
- class openprotein.umap.UMAPModel(session, job=None, metadata=None)[source]#
UMAP model that can be used to create projected embeddings.
The model is also implemented as a Future to allow waiting for a fit job. The projected embeddings of the sequences used to fit the UMAP can be accessed using embeddings.
- Parameters:
session (APISession)
job (UMAPFitJob)
metadata (UMAPMetadata | None)
- __init__(session, job=None, metadata=None)[source]#
- Parameters:
session (APISession)
job (UMAPFitJob | None)
metadata (UMAPMetadata | None)
Methods
__init__(session[, job, metadata])cancelled()Check if the job has been cancelled.
create(session[, job_id, job, response])Create an instance of the appropriate Future class based on the job type.
delete()Delete this UMAP model.
done()Check if the job has completed.
embed(sequences, **kwargs)Use this UMAP model to get projected embeddings from input sequences.
get([verbose])Retrieve this UMAP model itself.
get_inputs()Get sequences used for umap job.
get_model()refresh()Refresh the job status and internal job object.
wait([interval, timeout, verbose])Wait for the job to complete, then fetch results.
wait_until_done([interval, timeout, verbose])Wait for the job to complete.
Attributes
created_dateThe creation timestamp of the job.
embeddingsThe projected embeddings of the sequences used to fit the UMAP.
end_dateThe end timestamp of the job.
idUMAP unique identifier.
job_idThe unique identifier of the job.
job_typeThe type of the job.
metadataMetadata of the UMAP.
min_distMinimum distance specified for the UMAP.
modelBase embeddings model used for the UMAP.
n_componentsNumber of components specified for the UMAP.
n_neighborsNumber of neighbors specified for the UMAP.
progress_counterThe progress counter of the job.
reductionReduction used to fit the UMAP.
sequence_lengthSequence length constraint of the UMAP.
sequencesThe sequences used to fit the UMAP.
start_dateThe start timestamp of the job.
statusThe current status of the job.
jobsession