We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am going to use ENUM class in my config file and I got this error. my code is
from utils import MetricsType, TrianingMode from yacs.config import CfgNode as CN # ----------------------------------------------------------------------------- # Config definition # ----------------------------------------------------------------------------- _C = CN() _C.MODEL = CN() _C.MODEL.NUM_CLASSES = 2 # ----------------------------------------------------------------------------- # INPUT # ----------------------------------------------------------------------------- _C.INPUT = CN() # ----------------------------------------------------------------------------- # Dataset # ----------------------------------------------------------------------------- _C.DATASET = CN() _C.DATASET.DATASET_ADDRESS = '../data/bank/bank.csv' _C.DATASET.DATASET_BRIEF_DESCRIPTION = '../data/bank/description.txt' _C.DATASET.TARGET = 'y' # ---------------------------------------------------------------------------- # # Models # ---------------------------------------------------------------------------- # _C.SVM = CN() _C.SVM.NAME = 'SVM' _C.SVM.MODE = TrianingMode.CLASSIFICATION _C.SVM.KERNEL = 'rbf' _C.SVM.GAMMA = 'scale' _C.SVM.VERBOSE = True # ---------------------------------------------------------------------------- # # metric # ---------------------------------------------------------------------------- # _C.METRIC = CN() _C.METRIC = MetricsType.F1_SCORE_MACRO _C.CONFUSION_MATRIX = True # ---------------------------------------------------------------------------- # # Misc options # ---------------------------------------------------------------------------- # # _C.OUTPUT_DIR = "../outputs"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am going to use ENUM class in my config file and I got this error. my code is
The text was updated successfully, but these errors were encountered: