Я пытаюсь запустить некоторые регрессии в Earth Engine, используя Cloud Datalab. Когда я копирую код из этого руководства по регрессии (модифицируя его для Python), я получаю эта ошибка:
NameErrorTraceback (most recent call last)
<ipython-input-45-21c9bd377408> in <module>()
14 linearRegression = collection.reduce(
15 ee.Reducer.linearRegression({
---> 16 numX: 2,
17 numY: 2
18 }))
NameError: name 'numX' is not defined
Похоже, это не проблема для других функций, и тот же код работает в Javascript API. Используется ли LinearRegression по-разному в API Python?
numX
иnumY
между кавычками? - person Val   schedule 27.06.2017EEException: Invalid argument specified for ee.Number(): {'numX': 2, 'numY': 2}
. Однако приведенное ниже решение Родриго работает. - person Andrew   schedule 04.07.2017