I have the following classifiers:
DT = sklearn.tree.DecisionTreeClassifier()
LR = sklearn.linear_model.LogisticRegression()
SVC = sklearn.svm.SVC()
So I created this list of classifiers:
classifiers = [DT, LR, SVC]
I want to create directories, one for each classifier in the list, so that I have these directories:
working_dir
├── DT
├── LR
├── SVC
Doing this in a way like:
for clf in classifiers:
# create a dir named clf (e.g. DT) if not exists
How can this be done.