{"id":24360394,"url":"https://github.com/dms-codes/mean-absolute-error","last_synced_at":"2025-09-04T19:10:27.457Z","repository":{"id":266921979,"uuid":"899772550","full_name":"dms-codes/mean-absolute-error","owner":"dms-codes","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-07T01:40:47.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.177Z","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-07T01:36:09.000Z","updated_at":"2024-12-07T01:40:51.000Z","dependencies_parsed_at":"2024-12-07T02:25:21.126Z","dependency_job_id":"523a24b2-c82f-4e4a-826a-c40b8241909e","html_url":"https://github.com/dms-codes/mean-absolute-error","commit_stats":null,"previous_names":["dms-codes/mean-absolute-error"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-absolute-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-absolute-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-absolute-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fmean-absolute-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/mean-absolute-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.569Z","updated_at":"2025-03-12T08:27:16.224Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mean Absolute Error (MAE) Calculation\n\nThis Python function calculates the Mean Absolute Error (MAE) between two lists of values.\n\ndef mean_absolute_error(actual, calculated):\n  \"\"\"\n  Calculates the Mean Absolute Error (MAE) between two lists.\n\n  Args:\n    actual: A list of actual values.\n    calculated: A list of calculated values.\n\n  Returns:\n    The Mean Absolute Error.\n\n  Raises:\n    ValueError: If the lengths of the input lists are not equal.\n  \"\"\"\n  if len(actual) != len(calculated):\n    raise ValueError(\"Actual and calculated lists must have the same length.\")\n\n  errors = [abs(a - c) for a, c in zip(actual, calculated)]\n  return sum(errors) / len(actual)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fmean-absolute-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Fmean-absolute-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fmean-absolute-error/lists"}