ExaScience / smurff

Bayesian Factorization with Side Information in C++ with Python wrapper
MIT License
70 stars 14 forks source link

Error saving models to ini file #118

Closed kizilipek closed 5 years ago

kizilipek commented 5 years ago

import smurff ic50_train, ic50_test, ecfp = smurff.load_chembl() ic50_threshold = 6. session = smurff.TrainSession( priors = ['normal', 'normal'], num_latent=32, burnin=100, nsamples=100,

Using threshold of 6. to calculate AUC on test data

                        threshold=ic50_threshold,
                        save_freq = 1,

                        save_prefix = "ic50-macau/save",
                        verbose = 1,)

session.addTrainAndTest(ic50_train, ic50_test, smurff.ProbitNoise(ic50_threshold)) session.init()

session.init() File "wrapper.pyx", line 449, in smurff.wrapper.TrainSession.init RuntimeError: line: 37 file: /Users/vanderaa/miniconda3/conda-bld/smurff_1543328299400/work/lib/smurff-cpp/SmurffCpp/IO/INIFile.cpp function: create assert: Error opening file: /Users/ikizil/pyCharmProjects/MF/ic50-macau/save/root.ini

tvandera commented 5 years ago

Hi, can you create the directory: "Users/ikizil/pyCharmProjects/MF/ic50-macau/save" and try again.

kizilipek commented 5 years ago

Dear Tom Vander Aa,

Please accept my apologies for my late reply. I really appreciated your prompt reply. I was about to submit a work.

Best Regards, Have a nice day,

On Thu, Nov 29, 2018 at 3:08 PM Tom Vander Aa notifications@github.com wrote:

Hi, can you create the directory: "Users/ikizil/pyCharmProjects/MF/ic50-macau/save" and try again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ExaScience/smurff/issues/118#issuecomment-442810608, or mute the thread https://github.com/notifications/unsubscribe-auth/Am9v4fgZ_hSDntjmIG-pc1sBJ-WnkgFpks5uz84ngaJpZM4Y5dHI .

-- İpek Kızıl

MSc Student of Computer Science and Engineering Koç University ​ ​Istanbul ​, ​ Turkey