def init(model_type: str, model_name: str, target: str) -> None: """ Initialize a new igel project. """ Igel.create_init_mock_file(model_type=model_type, model_name=model_name, target=target)
def init(self, *args, **kwargs): """ initialize a dummy/default yaml file as a starting point. The user can provide args directly in the terminal usage: igel init <args> if not args are provided, the user will be prompted to enter basic information. """ d = dict(self.dict_args) d.pop("cmd") if not d: print( f"" f"{'*' * 10} You entered interactive mode! {'*' * 10} \n" f"This is happening because you didn't enter all mandatory arguments in order to use the cli\n" f"Therefore, you will need to provide few information before proceeding.\n" ) model_type = (input( f"enter type of the problem you want to solve: [regression] " ) or "regression") d["model_type"] = model_type model_name = (input( f"enter algorithm you want to use: [NeuralNetwork] ") or "NeuralNetwork") d["model_name"] = model_name target = input( f"enter the target you want to predict " "(this is usually a column name in your csv dataset): ") d["target"] = target Igel.create_init_mock_file(**d)
def init(self, *args, **kwargs): Igel.create_init_mock_file(**self.dict_args)