I'm using Deep Learning version 3.2 and ArcGIS Pro API for python.
I'm running my scripts on Jupyter notebook. I have the following codes:
import os
from pathlib import Path
from arcgis.learn import prepare_data
from arcgis.learn import UnetClassifier
from arcgis.learn import train_model
from arcgis.gis import GIS
# Prepare data
data = prepare_data(path=r"E:\DL_Models_v32\TrainedData_v32\ClassifiedTiles\BellTrainedData_UnetNlcd", batch_size = 64, chip_size = 512)
#Login to ArcGIS license
gis = GIS("https://ourPortal", "username", "password")
On the login cell, I get a runtime error: "ArcGIS Online does not support train_model function.
But I'm trying to run using arcgis.learn API. How do I specify my login credentials? I'm not sure about our organization's portal address. How do I get it?
Appreciate any response.
Solved! Go to Solution.
My bad. This has noting to do with Login. I thought there was a "train_model" function. Still learning....
My bad. This has noting to do with Login. I thought there was a "train_model" function. Still learning....