help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
music-classification
RSK World
music-classification
Music Classification Dataset - Genre Classification + Music AI + Audio ML
music-classification
  • __pycache__
  • data
  • models
  • notebooks
  • utils
  • .gitignore1.2 KB
  • ADVANCED_FEATURES.md10.7 KB
  • COMPLETE_PROJECT_INFO.txt16.3 KB
  • CONTRIBUTING.md2 KB
  • DATASET_INFO.md8.5 KB
  • INSTALLATION.md8.4 KB
  • LICENSE2.1 KB
  • PROJECT_STRUCTURE.md8.4 KB
  • PROJECT_SUMMARY.md12.7 KB
  • README.md5.7 KB
  • START_HERE.md7 KB
  • USAGE_GUIDE.md11.1 KB
  • WHATS_NEW.md8.9 KB
  • config.py4.3 KB
  • demo.py11.9 KB
  • example_usage.py8.8 KB
  • index.html38.8 KB
  • music-classification.png2.1 MB
  • quick_start.py5.7 KB
  • requirements.txt1.1 KB
  • setup.py2.9 KB
  • validate_project.py7 KB
config.py
config.py
Raw Download
Find: Go to:
"""
Configuration File for Music Classification Dataset

Project: Music Classification Dataset
Author: Molla Samser
Company: RSK World
Designer & Tester: Rima Khatun
Website: https://rskworld.in
Email: help@rskworld.in, support@rskworld.in
Phone: +91 93305 39277
Description: Configuration settings for the project
License: Educational Purpose Only
"""

import os

# Project Information
PROJECT_NAME = "Music Classification Dataset"
PROJECT_VERSION = "1.0.0"
AUTHOR = "Molla Samser"
COMPANY = "RSK World"
DESIGNER_TESTER = "Rima Khatun"
WEBSITE = "https://rskworld.in"
EMAIL = "help@rskworld.in"
SUPPORT_EMAIL = "support@rskworld.in"
PHONE = "+91 93305 39277"

# Directory Paths
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.join(BASE_DIR, 'data')
AUDIO_DIR = os.path.join(DATA_DIR, 'audio')
MODEL_DIR = os.path.join(BASE_DIR, 'models')
SAVED_MODELS_DIR = os.path.join(MODEL_DIR, 'saved_models')
NOTEBOOK_DIR = os.path.join(BASE_DIR, 'notebooks')
UTILS_DIR = os.path.join(BASE_DIR, 'utils')

# Audio Settings
SAMPLE_RATE = 22050  # Hz
AUDIO_DURATION = 30.0  # seconds
N_MFCC = 13  # Number of MFCC coefficients
HOP_LENGTH = 512
N_FFT = 2048

# Genre Categories
GENRES = [
    'classical',
    'jazz',
    'rock',
    'pop',
    'hiphop',
    'electronic',
    'country',
    'blues'
]

# Model Settings
MODEL_TYPES = ['random_forest', 'svm', 'knn', 'neural_network']
DEFAULT_MODEL = 'random_forest'
RANDOM_STATE = 42

# Random Forest Settings
RF_N_ESTIMATORS = 100
RF_MAX_DEPTH = None
RF_MIN_SAMPLES_SPLIT = 2

# SVM Settings
SVM_KERNEL = 'rbf'
SVM_C = 1.0
SVM_GAMMA = 'scale'

# KNN Settings
KNN_N_NEIGHBORS = 5
KNN_WEIGHTS = 'uniform'

# Neural Network Settings
NN_HIDDEN_LAYERS = [128, 64, 32]
NN_ACTIVATION = 'relu'
NN_OPTIMIZER = 'adam'
NN_BATCH_SIZE = 32
NN_EPOCHS = 50

# Data Split
TRAIN_TEST_SPLIT = 0.2  # 80% train, 20% test
VALIDATION_SPLIT = 0.1

# Feature Extraction Settings
EXTRACT_MFCC = True
EXTRACT_CHROMA = True
EXTRACT_SPECTRAL_CENTROID = True
EXTRACT_SPECTRAL_ROLLOFF = True
EXTRACT_SPECTRAL_BANDWIDTH = True
EXTRACT_ZERO_CROSSING_RATE = True
EXTRACT_RMS_ENERGY = True
EXTRACT_TEMPO = True

# Visualization Settings
FIGURE_SIZE = (12, 6)
DPI = 100
PLOT_STYLE = 'seaborn-v0_8-whitegrid'

# File Paths
TRAIN_CSV = os.path.join(DATA_DIR, 'train_data.csv')
TEST_CSV = os.path.join(DATA_DIR, 'test_data.csv')
FEATURES_CSV = os.path.join(DATA_DIR, 'features.csv')

# Logging Settings
LOG_LEVEL = 'INFO'
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'

# Performance Thresholds
MIN_ACCURACY = 0.75  # Minimum acceptable accuracy
MIN_CONFIDENCE = 0.60  # Minimum confidence for predictions

# Contact Information Dictionary
CONTACT_INFO = {
    'author': AUTHOR,
    'company': COMPANY,
    'designer_tester': DESIGNER_TESTER,
    'website': WEBSITE,
    'email': EMAIL,
    'support_email': SUPPORT_EMAIL,
    'phone': PHONE,
}

# Project Description
PROJECT_DESCRIPTION = """
Music Classification Dataset - A comprehensive dataset for music genre classification
with audio samples across multiple genres including Classical, Jazz, Rock, Pop, 
Hip-Hop, Electronic, Country, and Blues.

Perfect for music information retrieval, genre classification, audio feature 
extraction, and music analysis applications.

Author: Molla Samser
Company: RSK World
Website: https://rskworld.in
"""

# Display Configuration
def print_config():
    """
    Print configuration information
    
    Author: Molla Samser (RSK World)
    """
    print("="*70)
    print(f"{PROJECT_NAME} - Configuration")
    print("="*70)
    print(f"Version: {PROJECT_VERSION}")
    print(f"Author: {AUTHOR}")
    print(f"Company: {COMPANY}")
    print(f"Designer & Tester: {DESIGNER_TESTER}")
    print(f"Website: {WEBSITE}")
    print(f"Contact: {EMAIL} | {PHONE}")
    print("="*70)
    print(f"Genres: {', '.join(GENRES)}")
    print(f"Sample Rate: {SAMPLE_RATE} Hz")
    print(f"Audio Duration: {AUDIO_DURATION}s")
    print(f"Default Model: {DEFAULT_MODEL}")
    print("="*70)


if __name__ == "__main__":
    # Display configuration when run directly
    print_config()
    
    print("\n© 2026 RSK World - Founded by Molla Samser")
    print("Designer & Tester: Rima Khatun")

170 lines•4.3 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer