Open sarahwegmuellerUSFS opened 1 year ago
Federal NORUS customer submitted Secure Support Case 03497602 to report an issue with a custom raster function that includes importing a pretrained xgboost machine-learning model that won't import for them.
The user has written a custom raster function that provides and empty output. When the user runs the same script as a Notebook, the script runs as we would expect and provides and output. However, this only seems to not work when ran as a raster function. User has ran the script through Pickle and it seems that the script fails when importing the xgboost model. The primary source that the user used to create the raster function is from GitHub: https://github.com/Esri/raster-functions/wiki/PythonRasterFunction#anatomy-of-a-python-raster-function [github.com].
Support troubleshooting discovered the function was obtained from https://github.com/Esri/raster-functions/wiki/PythonRasterFunction#anatomy-of-a-python-raster-function and directed user to submit the issue here https://github.com/Esri/raster-functions and then discovered customer already logged an issue, https://github.com/Esri/raster-functions/issues/84
Support has reproduced this issue yet GitHub licensing section clearly states "Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." Support cannot assist the customer further. Support analyst: Taylor Jones,
@sarahwegmuellerUSFS Did you ever get this working?
Hello Greg,
No, I did not. Sorry for the delay. I was in the field when this email came in and I'm still digging myself out of the mound of emails that came in during the week I was away.
Thank you, Sarah
[Forest Service Shield] Sarah Wegmueller, PhD (she/her) Remote Sensing Analyst St Paul Field Office Forest Service State, Private, & Tribal Forestry Forest Health Protection
Office: (651) 649-5029 Cell: (612) 963-0330 @.**@.> 1992 Folwell Avenue St Paul, MN 55108 [http://wwwstatic.fs.usda.gov/images/email/usda-logo.png]http://usda.gov/[Twitter Logo]https://twitter.com/forestservice[Facebook Logo]http://facebook.com/USDA Caring for the land and serving people
From: Gregory Brunner @.> Sent: Monday, April 15, 2024 9:33 AM To: Esri/raster-functions @.> Cc: Wegmueller, Sarah - FS, MN @.>; Mention @.> Subject: Re: [Esri/raster-functions] Issue with XGBoost loading a pretrained model in a custom raster function (Issue #84)
@sarahwegmuellerUSFShttps://github.com/sarahwegmuellerUSFS Did you ever get this working?
- Reply to this email directly, view it on GitHubhttps://github.com/Esri/raster-functions/issues/84#issuecomment-2057009652, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEF7TOJIUPYQMYVHEMUCOF3Y5PQLNAVCNFSM6AAAAAA7WV6ENGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJXGAYDSNRVGI. You are receiving this because you were mentioned.Message ID: @.**@.>>
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
Hello,
I'm looking for help trouble shooting a custom raster function. The heart of the rf is an XGBoost model, but something goes wrong when I try to load the model. I've used Pickel to help narrow down the issue, and verified that the xgboost library IS loading and that the filepath for the model is correct. For whatever reason, the model is not loading. Using a notebook in ArcPro, I could not replicate the issue (everything runs as it should). It seems to be an issue specifically with the raster function. I'm really at a loss as to how to fix this and any insight would be much appreciated!
Other notes: Everything up to the loading of the model is working (verified this using Pickel). The rf on a whole runs, but provides no output (because the model is not loading).
The code around the issue: