Fraud_Detection / register.py
cmasukume's picture
Upload 21 files
045d34f verified
raw
history blame contribute delete
356 Bytes
model_path = r"C:\Fraud_Detection\model.pkl"
from azureml.core import Workspace, Model
# Connect to the Azure ML workspace
ws = Workspace.from_config()
# Register the model
model = Model.register(
model_path=model_path, # Use raw string literal for the file path
model_name="Fraud Detection", # Your model name
workspace=ws
)