I'm trying to save the results of a model estimation to a file. I have tried a number of things but it doesn't work because I'm obviously not doing it correctly. I'm not even sure os.path.join is the right command from os.path:
#output the vectors for winsize=5 and features=10
study1_path = os.path.join("/Users/dlhoffman/Study 1/")
print(study1_path)
/Users/dlhoffman/Study 1/
ifttt_model.wv.save_word2vec_format("study1_path/vectors.txt", binary=False, total_vec=None)
Since I have to estimate this model a number of times and I'd like to save some brute force typing, I'd also like to label each output file with the values of the hyperparameters winsize and features.
The file name I would like to get for say, winsize=5 and features=10 are:
/Users/dlhoffman/Study 1/5w10fvectors.txt
So in the above case, the "5" and the "10" come from the values of the variables winsize and features. I've studied the examples & the os.path module documentation, but don't know enough python to get what I should do. Any ideas?