Skip to content

Instantly share code, notes, and snippets.

@suchow
Created June 11, 2020 20:42
Show Gist options
  • Save suchow/e3729e9949f8e33f00503d0395cffeb6 to your computer and use it in GitHub Desktop.
Save suchow/e3729e9949f8e33f00503d0395cffeb6 to your computer and use it in GitHub Desktop.
Testing smurff on Python 3.7.7
(base) ➜ ~ mkvirtualenv -p python3 smurff
created virtual environment CPython3.7.7.final.0-64 in 472ms
creator CPython3Posix(dest=/Users/suchow/.virtualenvs/smurff, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Users/suchow/Library/Application Support/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
virtualenvwrapper.user_scripts creating /Users/suchow/.virtualenvs/smurff/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/suchow/.virtualenvs/smurff/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/suchow/.virtualenvs/smurff/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/suchow/.virtualenvs/smurff/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/suchow/.virtualenvs/smurff/bin/get_env_details
(smurff) (base) ➜ ~ which python3
/Users/suchow/.virtualenvs/smurff/bin/python3
(smurff) (base) ➜ ~ python3 --version
Python 3.7.7
(smurff) (base) ➜ ~ which pip3
/Users/suchow/.virtualenvs/smurff/bin/pip3
(smurff) (base) ➜ ~ pip3 install smurff
Collecting smurff
Downloading smurff-0.15.0.post15-cp37-cp37m-macosx_10_9_x86_64.whl (10.6 MB)
|████████████████████████████████| 10.6 MB 1.9 MB/s
Collecting numpy
Using cached numpy-1.18.5-cp37-cp37m-macosx_10_9_x86_64.whl (15.1 MB)
Collecting scikit-learn
Downloading scikit_learn-0.23.1-cp37-cp37m-macosx_10_9_x86_64.whl (7.2 MB)
|████████████████████████████████| 7.2 MB 17.5 MB/s
Collecting h5sparse
Downloading h5sparse-0.1.0-py2.py3-none-any.whl (6.1 kB)
Collecting scipy
Using cached scipy-1.4.1-cp37-cp37m-macosx_10_6_intel.whl (28.4 MB)
Collecting pandas
Using cached pandas-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl (10.0 MB)
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
Collecting joblib>=0.11
Downloading joblib-0.15.1-py3-none-any.whl (298 kB)
|████████████████████████████████| 298 kB 7.3 MB/s
Collecting six
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting h5py
Downloading h5py-2.10.0-cp37-cp37m-macosx_10_6_intel.whl (3.0 MB)
|████████████████████████████████| 3.0 MB 11.7 MB/s
Collecting python-dateutil>=2.6.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz>=2017.2
Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Installing collected packages: numpy, scipy, threadpoolctl, joblib, scikit-learn, six, h5py, h5sparse, python-dateutil, pytz, pandas, smurff
Successfully installed h5py-2.10.0 h5sparse-0.1.0 joblib-0.15.1 numpy-1.18.5 pandas-1.0.4 python-dateutil-2.8.1 pytz-2020.1 scikit-learn-0.23.1 scipy-1.4.1 six-1.15.0 smurff-0.15.0.post15 threadpoolctl-2.1.0
WARNING: You are using pip version 20.0.2; however, version 20.1.1 is available.
You should consider upgrading via the '/Users/suchow/.virtualenvs/smurff/bin/python -m pip install --upgrade pip' command.
(smurff) (base) ➜ ~ python3
Python 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import smurff
>>> dir(smurff)
['AdaptiveNoise', 'BPMFSession', 'FixedNoise', 'GFASession', 'MacauSession', 'PredictSession', 'Prediction', 'ProbitNoise', 'SampledNoise', 'SmurffSession', 'SparseTensor', 'StatusItem', 'TrainSession', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'bpmf', 'calc_auc', 'calc_rmse', 'center', 'center_and_scale', 'datasets', 'gfa', 'helper', 'load_chembl', 'macau', 'make_train_test', 'make_train_test_df', 'matrix_io', 'predict', 'prepare', 'result', 'smurff', 'wrapper']
>>> exit()
(smurff) (base) ➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment