auto-sklearn實驗部分源碼閱讀

scripts/2015_nips_paper/run/run_auto_sklearn.py

元學習的LeaveOneOut留一驗證

    if use_metalearning is True:
        # path to the original metadata directory.
        metadata_directory = os.path.abspath(os.path.dirname(__file__))
        metadata_directory = os.path.join(metadata_directory,
                                          "../../../autosklearn/metalearning/files/")

        # Create new metadata directory not containing task_id.
        new_metadata_directory = os.path.abspath(os.path.join(working_directory,
                                                              "metadata_%i" % task_id))

        try:
            os.makedirs(new_metadata_directory)
        except OSError:
            pass  # pass because new metadata is created for this task.

        # remove the given task id from metadata directory.
        remove_dataset(metadata_directory, new_metadata_directory, task_id)

運行scripts/2015_nips_paper/setup/create_commands.sh後,生成commands.txt

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章