Skip to content

Commit

Permalink
Fixed sequential pipeline example
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddhantSadangi committed Dec 27, 2023
1 parent 473187c commit e2da5d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from neptune.exceptions import ModelNotFound, ModelVersionNotFound
from neptune.types import File
from sklearn.metrics import ConfusionMatrixDisplay, classification_report

from utils import *

matplotlib.use("Agg")
Expand All @@ -29,7 +30,10 @@
with_id=f"{project_key}-{model_key}", # Your model ID here
)
model_versions_table = model.fetch_model_versions_table().to_pandas()
latest_model_version_id = model_versions_table["sys/id"].tolist()[0]
latest_model_version_id = model_versions_table.sort_values(
by="sys/creation_time", ascending=False
).reset_index()["sys/id"][0]


except ModelNotFound:
print(
Expand Down

0 comments on commit e2da5d2

Please sign in to comment.