{"id":17893988,"url":"https://github.com/grantgasser/task3","last_synced_at":"2026-04-05T21:32:25.636Z","repository":{"id":129537701,"uuid":"130693057","full_name":"grantgasser/Task3","owner":"grantgasser","description":"Multiclass Classification","archived":false,"fork":false,"pushed_at":"2018-10-01T19:42:11.000Z","size":19204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T04:18:22.561Z","etag":null,"topics":["keras","multiclass-classification","numpy","pandas","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/grantgasser.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":"2018-04-23T12:27:16.000Z","updated_at":"2018-10-01T19:42:47.000Z","dependencies_parsed_at":"2023-05-06T09:33:11.554Z","dependency_job_id":null,"html_url":"https://github.com/grantgasser/Task3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grantgasser/Task3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantgasser%2FTask3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantgasser%2FTask3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantgasser%2FTask3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantgasser%2FTask3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grantgasser","download_url":"https://codeload.github.com/grantgasser/Task3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantgasser%2FTask3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31451438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["keras","multiclass-classification","numpy","pandas","tensorflow"],"created_at":"2024-10-28T14:58:45.610Z","updated_at":"2026-04-05T21:32:25.598Z","avatar_url":"https://github.com/grantgasser.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task 3 Multiclass Classification\n\n### Description\nThis program uses a deep neural network using [keras](https://keras.io/). \n\n### Data\nThe training and test data comes from two h5 files. There are 100 predictors (X variables) and an output Y (either 0, 1, 2, 3, 4). \n\n### Implementation\nThe program first standardizes the x-values, assuring for each x_1 through x_100, the mean(x_i) ~= 0. This speeds up training. Next a neural network is set up with hidden layers of size 70, 30, 50, 20. The activation function used for the input layers is ReLU. The input layer is 100 (there are 100 predictors) and the output layer is 5 (there are 5 classes). The output layer is softmaxed in order to obtain a probability distribution for the classes. Some more model parameters: \n* Optimizer: Adam\n* Loss function: Categorical Cross Entropy\n* Metric: Accuracy\n\n#### Side notes\nThe data must be 1-hot encoded when passed to the keras fit function. One can use the `to_categorical` function from the keras utils module. \n\nThe predictions are output to a csv file, which was uploaded to be tested on a unknown data set. The accuracy of the model on the new test set was **90.6%**, which passed the \"hard\" baseline provided by the creators of the competition. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantgasser%2Ftask3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrantgasser%2Ftask3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantgasser%2Ftask3/lists"}