{"id":24360393,"url":"https://github.com/dms-codes/mean-squared-error","last_synced_at":"2026-04-25T13:05:55.093Z","repository":{"id":266924116,"uuid":"899779229","full_name":"dms-codes/mean-squared-error","owner":"dms-codes","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-07T02:11:57.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T21:20:02.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dms-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-07T02:11:29.000Z","updated_at":"2024-12-07T02:12:01.000Z","dependencies_parsed_at":"2024-12-07T03:19:03.136Z","dependency_job_id":"4011f5f5-9a08-44d0-9cf8-94a6d784fbde","html_url":"https://github.com/dms-codes/mean-squared-error","commit_stats":null,"previous_names":["dms-codes/mean-squared-error"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-squared-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-squared-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-squared-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-squared-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/mean-squared-error/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243182881,"owners_count":20249704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-01-18T21:19:39.382Z","updated_at":"2025-12-25T13:59:17.913Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mean Squared Error (MSE) Calculation\n\nThis file demonstrates two ways to calculate the Mean Squared Error (MSE) between two lists of values:\n\n1. **Manual Calculation:** \n   - The `mean_squared_error` function calculates the MSE directly by:\n     - Checking for equal lengths of input lists.\n     - Calculating the squared difference between corresponding values.\n     - Summing the squared errors.\n     - Dividing the sum of squared errors by the number of data points.\n\n2. **Using scikit-learn:**\n   - The `calculate_mse` function leverages the `mean_squared_error` function from the scikit-learn library for efficient and concise MSE calculation.\n\n## Example Usage\n\nBoth functions can be used as follows:\n\n```python\nactual = [2, 3, 5, 5, 9]\ncalculated = [3, 3, 8, 7, 6]\n\n# Manual Calculation\nmse_manual = mean_squared_error(actual, calculated) \nprint(f\"Mean Squared Error (Manual): {mse_manual}\")\n\n# Using scikit-learn\nmse_sklearn = calculate_mse(actual, calculated)\nprint(f\"Mean Squared Error (scikit-learn): {mse_sklearn}\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fmean-squared-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Fmean-squared-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fmean-squared-error/lists"}