Compare commits
3 Commits
9962544bf5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d9dbbc9ca | |||
| 8ece1be4f9 | |||
| c2e07b979a |
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB |
BIN
output/.DS_Store
vendored
BIN
output/.DS_Store
vendored
Binary file not shown.
BIN
output/lightgbm_factor/model.pkl
Normal file
BIN
output/lightgbm_factor/model.pkl
Normal file
Binary file not shown.
BIN
output/lightgbm_factor/scaler.pkl
Normal file
BIN
output/lightgbm_factor/scaler.pkl
Normal file
Binary file not shown.
1408
output/lightgbm_factor/validate.json
Normal file
1408
output/lightgbm_factor/validate.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
output/lightgbm_factor/validate.png
Normal file
BIN
output/lightgbm_factor/validate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
8
output/lightgbm_feature/features.txt
Normal file
8
output/lightgbm_feature/features.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
bpm_avg
|
||||||
|
bpm_change
|
||||||
|
color_complexity
|
||||||
|
density_avg
|
||||||
|
density_peak
|
||||||
|
note_count
|
||||||
|
rhythm_complexity
|
||||||
|
scroll_change
|
||||||
BIN
output/lightgbm_feature/model.pkl
Normal file
BIN
output/lightgbm_feature/model.pkl
Normal file
Binary file not shown.
BIN
output/lightgbm_feature/scaler.pkl
Normal file
BIN
output/lightgbm_feature/scaler.pkl
Normal file
Binary file not shown.
1411
output/lightgbm_feature/validate.json
Normal file
1411
output/lightgbm_feature/validate.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
output/lightgbm_feature/validate.png
Normal file
BIN
output/lightgbm_feature/validate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
BIN
output/xgboost_feature/.DS_Store
vendored
Normal file
BIN
output/xgboost_feature/.DS_Store
vendored
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
1411
output/xgboost_feature/validate.json
Normal file
1411
output/xgboost_feature/validate.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
output/xgboost_feature/validate_.png
Normal file
BIN
output/xgboost_feature/validate_.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
@@ -14,9 +14,9 @@ warnings.filterwarnings("ignore", category=UserWarning)
|
|||||||
# =========================================================
|
# =========================================================
|
||||||
|
|
||||||
FEATURES_FILENAME = "features.json"
|
FEATURES_FILENAME = "features.json"
|
||||||
MODEL_FILENAME = "model_lgbm.pkl"
|
MODEL_FILENAME = "model.pkl"
|
||||||
SCALER_FILENAME = "scaler_lgbm.pkl"
|
SCALER_FILENAME = "scaler.pkl"
|
||||||
FEATURE_NAMES_FILENAME = "features_lgbm.txt"
|
FEATURE_NAMES_FILENAME = "features.txt"
|
||||||
|
|
||||||
def safe_float(value):
|
def safe_float(value):
|
||||||
if value is None: return 0.0
|
if value is None: return 0.0
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ const resultData = {
|
|||||||
details: comparisonResults.sort((a, b) => b.error - a.error)
|
details: comparisonResults.sort((a, b) => b.error - a.error)
|
||||||
};
|
};
|
||||||
|
|
||||||
const comparePath = path.join(workingDir, "compare_feature.json");
|
const comparePath = path.join(workingDir, "compare.json");
|
||||||
fs.writeFileSync(comparePath, JSON.stringify(resultData, null, 2), "utf-8");
|
fs.writeFileSync(comparePath, JSON.stringify(resultData, null, 2), "utf-8");
|
||||||
|
|
||||||
console.log(`\nComparison complete! Results saved to: ${comparePath}`);
|
console.log(`\nComparison complete! Results saved to: ${comparePath}`);
|
||||||
|
|||||||
@@ -63,4 +63,5 @@ for (const file of files) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const featurePath = path.join(workingDir, values.fileName ?? 'features.json');
|
const featurePath = path.join(workingDir, values.fileName ?? 'features.json');
|
||||||
fs.writeFileSync(featurePath, JSON.stringify(features, null, 2), 'utf-8');
|
fs.writeFileSync(featurePath, JSON.stringify(features, null, 2), 'utf-8');
|
||||||
|
console.log(`Successfully saved factors to ${featurePath}`);
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ TRAIN_SIZE = 0
|
|||||||
VALID_SIZE = 0
|
VALID_SIZE = 0
|
||||||
RANDOM_STATE = 42
|
RANDOM_STATE = 42
|
||||||
|
|
||||||
N_ESTIMATORS = 500
|
N_ESTIMATORS = 800
|
||||||
MAX_DEPTH = 6
|
MAX_DEPTH = 5
|
||||||
LEARNING_RATE = 0.05
|
LEARNING_RATE = 0.01
|
||||||
CONTINUE_TRAINING = True
|
CONTINUE_TRAINING = True
|
||||||
ERROR_TOLERANCE = 0.1
|
ERROR_TOLERANCE = 0.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user