{"id":18883685,"url":"https://github.com/pierric/neural-network","last_synced_at":"2025-04-14T20:56:58.124Z","repository":{"id":56873673,"uuid":"74961829","full_name":"pierric/neural-network","owner":"pierric","description":"Neural network framework in Haskell","archived":false,"fork":false,"pushed_at":"2017-10-22T09:20:12.000Z","size":286,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T08:47:06.830Z","etag":null,"topics":["haskell","neural-network"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pierric.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}},"created_at":"2016-11-28T10:25:22.000Z","updated_at":"2022-03-27T22:25:52.000Z","dependencies_parsed_at":"2022-08-20T22:30:22.018Z","dependency_job_id":null,"html_url":"https://github.com/pierric/neural-network","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierric%2Fneural-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierric%2Fneural-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierric%2Fneural-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierric%2Fneural-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pierric","download_url":"https://codeload.github.com/pierric/neural-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961186,"owners_count":21189991,"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":["haskell","neural-network"],"created_at":"2024-11-08T07:08:26.494Z","updated_at":"2025-04-14T20:56:58.096Z","avatar_url":"https://github.com/pierric.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neural-network\nNeural network framework in Haskell\n\n## Packages included\n- **Base**. This package defines the abstract neural-network, and a extendable\nspecification of layers.\n- **Backend-hmatrix**. This package implements the full-connect layer and convolution\nlayer based on hmatrix library. It has a simple and plain representation but some issues\nin both time and space efficiency.\n- **Backend-blashs**. This package implements the full-connect layer and convolution\nlayer based on blas-hs library. A imperative interface for manipulating dense vector\nand matrix is devised for better storage utilization.\n\n\n## Build with stack tool\n- Please see https://docs.haskellstack.org/en/stable/README/\n\n## Additional notes on build\n### Linux\n- with *openblas* flag true in the flags section, please install the openblas by the official package management.\n  - or else, install blas/lapack package.\n\n### Windows\n- Download OpenBLAS from http://www.openblas.net/\n- Modify the following fields in the stack.yaml\n  - *extra-include-dirs:* path-to-include-dir-of-openblas\n  - *extra-lib-dirs:* path-to-lib-dir-of-openblas\n\n### Utilizing SIMD\n- The *vec128* flag for *neural-network-blashs* can be turned on, and many operations will utilize SIMD for better performance.\n```yaml\n    neural-network-blashs:\n      vec128: true\n```\n- The flags *vec256* and *vec512* cause segment-fault for the moment.\n\n- A known bug on windows. *vec128* implies compiler option **-fllvm** for ghc. However due to a known bug of binutils on mingw-w64, this option leads to a segment fault \n  - mingw-w64-x86_64-binutils \u003c 2.27-2\n  - ghc \u003c= 8.0.1 (because it is bundled with old binutils)\n  - stack resolver \u003c= lts-7.14 (because it imples ghc \u003c= 8.0.1)\n  - See bug report here https://ghc.haskell.org/trac/ghc/ticket/8974\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierric%2Fneural-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierric%2Fneural-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierric%2Fneural-network/lists"}