Last active
October 3, 2023 00:08
-
-
Save Bennykillua/8e7cfeab738bc0ed50b64ea350124e3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install and import the Comet Library: | |
import comet_ml | |
from comet_ml import Artifact, Experiment | |
# Initialize comet instance for API Key. You can access your API Key here: https://www.comet.com/account-settings/apiKeys | |
comet_ml.init() | |
# Create an Experiment object by giving it a name and the workspace it should belong to. | |
# You can get all your available workspaces here: https://www.comet.com/account-settings/workspaces | |
experiment = Experiment(project_name="Rent Experiment", workspace="bennykillua") | |
# Initialize Artifact by giving it a name, artifact_type, and specifying the file path with the artifact.add(). | |
artifact = Artifact(name="HouseRent", artifact_type="dataset") | |
#Specify the path of the artifact | |
artifact.add(r"/content/House_Rent_Dataset.csv") | |
We can now log the artifact to the Comet platform. | |
#log artifact to experiment | |
experiment.log_artifact(artifact) | |
#end the experiment | |
experiment.end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment