{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/3696","repository_url":"https://api.github.com/repos/dmlc/xgboost","labels_url":"https://api.github.com/repos/dmlc/xgboost/issues/3696/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/xgboost/issues/3696/comments","events_url":"https://api.github.com/repos/dmlc/xgboost/issues/3696/events","html_url":"https://github.com/dmlc/xgboost/issues/3696","id":359482012,"node_id":"MDU6SXNzdWUzNTk0ODIwMTI=","number":3696,"title":"Problems loading Xgboost models","user":{"login":"selphie1410","id":43209353,"node_id":"MDQ6VXNlcjQzMjA5MzUz","avatar_url":"https://avatars2.githubusercontent.com/u/43209353?v=4","gravatar_id":"","url":"https://api.github.com/users/selphie1410","html_url":"https://github.com/selphie1410","followers_url":"https://api.github.com/users/selphie1410/followers","following_url":"https://api.github.com/users/selphie1410/following{/other_user}","gists_url":"https://api.github.com/users/selphie1410/gists{/gist_id}","starred_url":"https://api.github.com/users/selphie1410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selphie1410/subscriptions","organizations_url":"https://api.github.com/users/selphie1410/orgs","repos_url":"https://api.github.com/users/selphie1410/repos","events_url":"https://api.github.com/users/selphie1410/events{/privacy}","received_events_url":"https://api.github.com/users/selphie1410/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-12T13:31:58Z","updated_at":"2018-09-13T07:33:55Z","closed_at":null,"author_association":"NONE","body":"I have trained an Xgboost regression model in R and I want to use it other data, Sadly I cannot convert it to PMML as it is a regression model.\r\n\r\nI have made a test set which is a csv file that I want to use my model on.\r\n\r\nI read in the test set and run  my model.\r\n.\r\nI then want to save my model load it and run it on the same data. When I do this I get totally different answers on the same data\r\n\r\nOriginal\r\n 1.1608219 1.1608219 0.7352632 0.7352632 0.8696429 1.0045016 0.8416470 1.0045016\r\nafter reloading\r\n3.487421 3.487421 3.487421 3.487421 3.487421 3.487421 2.712625 3.487421\r\n\r\nI have used xgb.save and xgb.load\r\n\r\nI have also used the .bin hack in another issue here. Didn't work but another different set of answers.\r\n\r\nObviously something is wrong but I can't work out what.\r\n\r\n\r\nAny other ideas how to deploy an xgboost regression model on data without retraining it each time?"},"comment":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/comments/420912288","html_url":"https://github.com/dmlc/xgboost/issues/3696#issuecomment-420912288","issue_url":"https://api.github.com/repos/dmlc/xgboost/issues/3696","id":420912288,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDkxMjI4OA==","user":{"login":"hcho3","id":2532981,"node_id":"MDQ6VXNlcjI1MzI5ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/2532981?v=4","gravatar_id":"","url":"https://api.github.com/users/hcho3","html_url":"https://github.com/hcho3","followers_url":"https://api.github.com/users/hcho3/followers","following_url":"https://api.github.com/users/hcho3/following{/other_user}","gists_url":"https://api.github.com/users/hcho3/gists{/gist_id}","starred_url":"https://api.github.com/users/hcho3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hcho3/subscriptions","organizations_url":"https://api.github.com/users/hcho3/orgs","repos_url":"https://api.github.com/users/hcho3/repos","events_url":"https://api.github.com/users/hcho3/events{/privacy}","received_events_url":"https://api.github.com/users/hcho3/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T07:33:55Z","updated_at":"2018-09-13T07:33:55Z","author_association":"CONTRIBUTOR","body":"Thanks, I tried running your script and get the error \r\n```\r\nError in terms.formula(object, data = data) : \r\n  'data' argument is of the wrong type\r\nCalls: sparse.model.matrix -> terms -> terms.formula\r\nExecution halted\r\n```"}}
{"actor":{"display_login":"hcho3"}}