Select to view content in your preferred language

ArcGIS Pro Python API login problem

584
1
Jump to solution
12-15-2023 11:20 AM
Labels (1)
JadedEarth
Frequent Contributor

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.

 

0 Kudos
1 Solution

Accepted Solutions
JadedEarth
Frequent Contributor

My bad.  This has noting to do with Login.  I thought there was a "train_model" function.  Still learning....

View solution in original post

0 Kudos
1 Reply
JadedEarth
Frequent Contributor

My bad.  This has noting to do with Login.  I thought there was a "train_model" function.  Still learning....

0 Kudos