Compare commits

...

3 Commits

Author SHA1 Message Date
0d9dbbc9ca fix 2026-04-25 19:33:35 +09:00
8ece1be4f9 lightgbm result 2026-04-25 18:14:04 +09:00
c2e07b979a . 2026-04-25 17:59:17 +09:00
24 changed files with 5329 additions and 10915 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

BIN
output/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,8 @@
bpm_avg
bpm_change
color_complexity
density_avg
density_peak
note_count
rhythm_complexity
scroll_change

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

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

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -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

View File

@@ -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}`);

View File

@@ -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}`);

View File

@@ -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