bharathgs /
Awesome-pytorch-list
A comprehensive list of pytorch related content on github,such as different models,implementations,helper libraries,tutorials etc.
84/100 healthLoading repository data…
kryptologyst / repository
A comprehensive Python toolkit for time series trend analysis, forecasting, and anomaly detection. This project provides both traditional statistical methods and modern machine learning approaches for analyzing time series data.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A comprehensive Python toolkit for time series trend analysis, forecasting, and anomaly detection. This project provides both traditional statistical methods and modern machine learning approaches for analyzing time series data.
git clone https://github.com/kryptologyst/Time-Series-Trend-Analysis.git
cd Time-Series-Trend-Analysis
pip install -r requirements.txt
# For Prophet forecasting
pip install prophet
# For LSTM forecasting
pip install torch
# For ARIMA forecasting
pip install statsmodels
Run a complete analysis with default synthetic data:
python main.py
Run with custom configuration:
python main.py --config config/custom_config.yaml --output results/
Analyze stock data from Yahoo Finance:
python main.py --data-source yfinance --symbol AAPL --start-date 2020-01-01 --end-date 2023-01-01
Launch the Streamlit application:
streamlit run streamlit_app.py
Then open your browser to http://localhost:8501 to access the interactive interface.
from src.trend_analyzer import TrendAnalyzer
from src.visualizer import TimeSeriesVisualizer
from src.forecaster import TimeSeriesForecaster
# Initialize components
analyzer = TrendAnalyzer()
visualizer = TimeSeriesVisualizer()
forecaster = TimeSeriesForecaster()
# Generate synthetic data
data = analyzer.generate_synthetic_data()
# Perform trend analysis
ma_trend = analyzer.moving_average_trend()
poly_trend = analyzer.polynomial_trend()
# Detect anomalies
anomaly_scores, anomaly_labels = analyzer.detect_anomalies()
# Generate forecasts
forecast = forecaster.linear_regression_forecast(data, forecast_horizon=30)
# Create visualizations
visualizer.plot_original_vs_trends(data, analyzer.trend_components)
The project uses YAML configuration files for customization. See config/config.yaml for available options:
data:
source: "synthetic" # Options: "synthetic", "yfinance", "file"
synthetic:
length: 1000
trend_type: "linear" # Options: "linear", "quadratic", "exponential"
seasonality: true
noise_level: 0.1
models:
moving_average:
window: 30
polynomial:
degree: 2
arima:
order: (1, 1, 1)
prophet:
yearly_seasonality: true
weekly_seasonality: true
visualization:
figure_size: [12, 8]
save_plots: true
time-series-trend-analysis/
├── src/ # Source code
│ ├── trend_analyzer.py # Core trend analysis functionality
│ ├── visualizer.py # Visualization components
│ └── forecaster.py # Forecasting methods
├── config/ # Configuration files
│ └── config.yaml # Main configuration
├── tests/ # Unit tests
│ └── test_components.py # Test cases
├── notebooks/ # Jupyter notebooks (optional)
├── data/ # Data directory
├── results/ # Output results
├── plots/ # Generated plots
├── models/ # Saved models
├── main.py # CLI entry point
├── streamlit_app.py # Web interface
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
└── README.md # This file
Run the test suite:
python -m pytest tests/ -v
Or run specific test modules:
python tests/test_components.py
from src.trend_analyzer import TrendAnalyzer
analyzer = TrendAnalyzer()
data = analyzer.generate_synthetic_data()
# Extract trends
ma_trend = analyzer.moving_average_trend(window=20)
poly_trend = analyzer.polynomial_trend(degree=2)
# Detrend the data
detrended = analyzer.detrend("polynomial")
# Detect anomalies using Isolation Forest
anomaly_scores, anomaly_labels = analyzer.detect_anomalies("isolation_forest")
# Detect anomalies using statistical method
anomaly_scores, anomaly_labels = analyzer.detect_anomalies("statistical")
from src.forecaster import TimeSeriesForecaster
forecaster = TimeSeriesForecaster()
# Generate forecasts using multiple methods
arima_forecast = forecaster.arima_forecast(data, forecast_horizon=30)
prophet_forecast = forecaster.prophet_forecast(data, forecast_horizon=30)
lstm_forecast = forecaster.lstm_forecast(data, forecast_horizon=30)
# Create ensemble forecast
forecasts = {
'ARIMA': arima_forecast,
'Prophet': prophet_forecast,
'LSTM': lstm_forecast
}
ensemble = forecaster.ensemble_forecast(forecasts)
from src.visualizer import TimeSeriesVisualizer
visualizer = TimeSeriesVisualizer()
# Plot trend analysis
visualizer.plot_original_vs_trends(data, analyzer.trend_components)
# Plot anomaly detection
visualizer.plot_anomaly_detection(data, anomaly_scores, anomaly_labels)
# Create comprehensive dashboard
visualizer.create_dashboard(
data,
analyzer.trend_components,
detrended,
anomaly_scores,
anomaly_labels
)
python main.py --help
Available options:
--config: Path to configuration YAML file--output: Output directory for results and plots--data-source: Data source (synthetic, yfinance, file)--symbol: Stock symbol for yfinance data--start-date: Start date for yfinance data (YYYY-MM-DD)--end-date: End date for yfinance data (YYYY-MM-DD)--verbose: Enable verbose logginggit checkout -b feature/new-feature)git commit -am 'Add new feature')git push origin feature/new-feature)This project is licensed under the MIT License - see the LICENSE file for details.
For questions, issues, or contributions, please:
Selected from shared topics, language and repository description—not editorial ratings.
bharathgs /
A comprehensive list of pytorch related content on github,such as different models,implementations,helper libraries,tutorials etc.
84/100 healthAkashSingh3031 /
Dive into this repository, a comprehensive resource covering Data Structures, Algorithms, 450 DSA by Love Babbar, Striver DSA sheet, Apna College DSA Sheet, and FAANG Questions! 🚀 That's not all! We've got Technical Subjects like Operating Systems, DBMS, SQL, Computer Networks, and Object-Oriented Programming, all waiting for you.
96/100 healthNyandwi /
A comprehensive machine learning repository containing 30+ notebooks on different concepts, algorithms and techniques.
93/100 healthA comprehensive list of Deep Learning / Artificial Intelligence and Machine Learning tutorials - rapidly expanding into areas of AI/Deep Learning / Machine Vision / NLP and industry specific areas such as Climate / Energy, Automotives, Retail, Pharma, Medicine, Healthcare, Policy, Ethics and more.
81/100 healthJosh-XT /
AGiXT is a dynamic AI Agent Automation Platform that seamlessly orchestrates instruction management and complex task execution across diverse AI providers. Combining adaptive memory, smart features, and a versatile plugin system, AGiXT delivers efficient and comprehensive AI solutions.
92/100 healthTrusted-AI /
A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
86/100 health