{"id":34051540,"url":"https://github.com/akomarla/expsmoothing","last_synced_at":"2026-03-17T22:34:24.283Z","repository":{"id":198814491,"uuid":"701601771","full_name":"akomarla/ExpSmoothing","owner":"akomarla","description":"A simple introduction to statistical learning for time-series forecasting using the Holt Simple Exponential Smoothing method","archived":false,"fork":false,"pushed_at":"2023-12-07T17:30:14.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T03:23:57.822Z","etag":null,"topics":["beginner","education","exponential-smoothing","python","smoothing-parameter","statistical-learning","time-series-forecasting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akomarla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-07T03:06:26.000Z","updated_at":"2025-03-14T02:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"de4eb409-cdc7-42f9-a5aa-65add4446d0b","html_url":"https://github.com/akomarla/ExpSmoothing","commit_stats":null,"previous_names":["akomarla/expsmoothing"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/akomarla/ExpSmoothing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akomarla%2FExpSmoothing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akomarla%2FExpSmoothing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akomarla%2FExpSmoothing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akomarla%2FExpSmoothing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akomarla","download_url":"https://codeload.github.com/akomarla/ExpSmoothing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akomarla%2FExpSmoothing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner","education","exponential-smoothing","python","smoothing-parameter","statistical-learning","time-series-forecasting"],"created_at":"2025-12-14T01:28:45.648Z","updated_at":"2026-03-17T22:34:24.274Z","avatar_url":"https://github.com/akomarla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n A simple introduction to statistical learning in time-series forecasting. This model is a lightweight and easy to understand example of model traning, testing and implementation. The package enables one to build, train and test a time-series forcasting model using the Simple Exponential Smoothing method. \n\nLearn more here: https://machinelearningmastery.com/exponential-smoothing-for-time-series-forecasting-in-python/ \n\n# Usage \n`pip install ExpSmoothing` (Python version 3.10.0 or greater is advised)\n\n# Model \nSimple Exponential Smoothing can be interpreted as a weighted sum of the time-series values wherein the weights are exponentially increasing (greater importance to future values in the time-series). The \"alpha\" value or the smoothing parameter lies between 0 and 1: the alpha value is directly proportional to the exponentially increasing nature of the weights.\n\nLearn more here: https://btsa.medium.com/introduction-to-exponential-smoothing-9c2d5909a714\n\n## Error metrics \nSimply put, training the model involves finding the \"alpha\" value that minimizes the forecast error (difference between true and forecasted values). In this implementation, one can choose from the following error metrics to obtain the optimal \"alpha\" value:\n| Error (Cost Function) | Parameter | Formula |\n| ------------ | ------------------- | --------- |\n| Mean Squared Error (MSE) |  ```mean squared error```  | \u003cimg src = \"https://github.com/akomarla/ExpSmoothing/assets/124313756/a58bc3d7-6661-4995-825d-b031bd62016a\" width = \"45%\" height = \"45%\"\u003e \u003ctr\u003e\u003c/tr\u003e |\n| Root Mean Squared Error (RMSE) |  ```root mean squared error```  | \u003cimg src = \"https://github.com/akomarla/ExpSmoothing/assets/124313756/13106816-f256-4e74-ad06-b20470cc6f74\" width = \"45%\" height = \"45%\"\u003e \u003ctr\u003e\u003c/tr\u003e |\n| Mean Absolute Error (MAE) |  ```mean absolute error```  | \u003cimg src = \"https://github.com/akomarla/ExpSmoothing/assets/124313756/a5821e63-0020-4fa2-aea7-993ba6c6babe\" width = \"45%\" height = \"45%\"\u003e \u003ctr\u003e\u003c/tr\u003e |\n| Mean Absolute Percentage Error (MAPE) |  ```mean absolute percentage error```  | \u003cimg src = \"https://github.com/akomarla/ExpSmoothing/assets/124313756/4825f7e2-f0c6-4396-b27f-2333542f2d84\" width = \"45%\" height = \"45%\"\u003e \u003ctr\u003e\u003c/tr\u003e |\n\nWhere n represents the number of time-series in the data set. \n\n\u003cimg src = \"https://github.com/akomarla/ExpSmoothing/assets/124313756/f5b6b8c5-2d78-4313-be97-f4dd35b8f7ea\" width = \"7%\" height = \"7%\"\u003e is the difference between the true and forecasted future values of the time-series i in n.\n\nLearn more about the different cost functions here: https://www.analyticsvidhya.com/blog/2021/10/evaluation-metric-for-regression-models/\n\n## Implementation \nThis model is trained and tested on the M4 dataset of the Makridakis Time-Series Forecasting Competition: https://github.com/Mcompetitions/M4-methods/tree/master/Dataset (Daily-train.csv and Daily-test.csv) using the mean absolute percentage error metric from the table above. \n\n# Questions\nContact aparna.komarla@gmail.com with any questions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakomarla%2Fexpsmoothing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakomarla%2Fexpsmoothing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakomarla%2Fexpsmoothing/lists"}