Satanas2 - #37
Open
sandragc8 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhanced Argument Parsing:
The script now includes a more comprehensive set of command-line arguments, allowing for greater flexibility in configuring model training and evaluation. New arguments have been added to specify the proportion of data for testing (
--test_size), enable cross-validation (--use_cross_validation), and define the number of folds for cross-validation (--cv_folds). Additionally, users can select the type of model to use (--model_type), specify the kernel type for SVM (--kernel), and adjust regularization parameters (--Cand--gamma). Options for polynomial features (--use_poly_featuresand--degree) and hyperparameter tuning (--tune_hyperparameters) have also been introduced. Furthermore, arguments for specifying file paths to save the trained model (--output_model) and evaluation results (--output_results) have been included.Updated
train_and_evaluateFunction:The
train_and_evaluatefunction has been modified to incorporate the new command-line arguments, allowing for more flexible model configuration. The function now supports setting model parameters dynamically based on user input. It also includes functionality for saving the trained model to a file usingjobliband storing evaluation results in a specified text file. This enhancement makes it easier to manage and review model performance and outputs.Output Management Improvements:
To facilitate better tracking and persistence of model training results, the script now saves the trained model and the evaluation report to user-specified files. This improvement ensures that users can efficiently manage and archive their machine learning experiments, providing a streamlined way to handle model artifacts and results.