File size: 356 Bytes
045d34f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
)