You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path_model_xgb='../models/model_xgb_logtarget.dump'model=xgboost.XGBRegressor()
model.load_model(path_model_xgb)
ypreds_log1p=model.predict(df_Xtest)
ypreds=np.expm1(ypreds_log1p)
print('ytest:', ytest[:3]) # this works, xgboost have no problem#=========== this code fails===========fromexplainximport*explainx.ai(df_Xtest, ytest, model, model_name="xgboost")
Error
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
<ipython-input-9-18b2a22d1f88> in <module>
1 from explainx import *
----> 2 explainx.ai(df_Xtest, ytest, model, model_name="xgboost")
~/opt/miniconda3/envs/expl/lib/python3.7/site-packages/explainx/explain.py in ai(self, df, y, model, model_name, mode)
57 instance_id = self.random_string_generator()
58 analytics = Analytics()
---> 59 analytics['ip'] = analytics.finding_ip()
60 analytics['mac'] = analytics.finding_address()
61 analytics['instance_id'] = instance_id
~/opt/miniconda3/envs/expl/lib/python3.7/site-packages/explainx/lib/analytics.py in finding_ip()
15 @staticmethod
16 def finding_ip():
---> 17 val = socket.gethostbyname(socket.gethostname())
18 return val
19
gaierror: [Errno 8] nodename nor servname provided, or not known
I was trying to install this module in brand new conda environment "expl" in Macos catalina.
Commands
xcode-select --install ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install nodejs npm install -g localtunnel /Users/poudel/opt/miniconda3/envs/expl/bin/pip install explainx
Code
Error
Question
How to install
explainx
in Macos?Versions
The text was updated successfully, but these errors were encountered: