{"id":17149055,"url":"https://github.com/palashio/nylon","last_synced_at":"2025-04-13T09:32:11.126Z","repository":{"id":48475652,"uuid":"373916677","full_name":"Palashio/nylon","owner":"Palashio","description":"An intelligent, flexible grammar of machine learning.","archived":false,"fork":false,"pushed_at":"2021-07-29T20:34:04.000Z","size":1986,"stargazers_count":83,"open_issues_count":13,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-10T09:54:14.726Z","etag":null,"topics":["auto-ml","data-science","grammar","machine-learning"],"latest_commit_sha":null,"homepage":"http://docs.paraglide.ai","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Palashio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-04T17:33:49.000Z","updated_at":"2024-09-20T16:22:59.000Z","dependencies_parsed_at":"2022-09-05T05:01:06.367Z","dependency_job_id":null,"html_url":"https://github.com/Palashio/nylon","commit_stats":null,"previous_names":["palashio/papyrus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palashio%2Fnylon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palashio%2Fnylon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palashio%2Fnylon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palashio%2Fnylon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Palashio","download_url":"https://codeload.github.com/Palashio/nylon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690868,"owners_count":21146221,"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":["auto-ml","data-science","grammar","machine-learning"],"created_at":"2024-10-14T21:31:34.961Z","updated_at":"2025-04-13T09:32:10.131Z","avatar_url":"https://github.com/Palashio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cbr\u003e\u003c/br\u003e \n\u003cimg src=\"/data_storage/github_images/nylonlogowhite.png\" alt=\"drawing\" width=\"400\"/\u003e\n \n \n` `  \n **An english representation of machine learning. Modify what you want, let us handle the rest.**\n\n \n[![Build Status](https://www.travis-ci.com/Palashio/nylon.svg?branch=main)](https://www.travis-ci.com/Palashio/nylon)\n[![Downloads](https://pepy.tech/badge/nylon-ai)](https://pepy.tech/project/nylon-ai)\n\n \u003c/div\u003e\n \n## Overview\n\nNylon is a python library that lets you customize automated machine learning workflows through a concise, JSON syntax. It provides a built in grammar, in which you can access different operations in ML with the english language.\n \n## Installation\n\nInstall latest release version:\n\n```\npip install -U nylon-ai\n```\n\nInstall directory from github:\n\n```\ngit clone https://github.com/Palashio/nylon.git\ncd nylon-ai\npip install .\n```\n\n## Usage: the basics\n\nA new `Polymer` object should be created everytime you're working with a new dataset. When initializing an object, a dataset in the form of a ```.csv``` or ```.xs``` file should be passed to it by path:\n\n```python\nnylon_object = Polymer('housing.csv')\n```\n\nNow, it's time to create a specifications file using the nylon grammar. Here's a basic one, that lets Nylon handle most of the work. Nylon currently has four major parts in it's grammar: the data reader, preprocessor, modeler, and analysis modules. In the example below, you can see that we're specifying the target column under data (which is always required), and manually specifying the type of preprocessing we'd like. **Everything we haven't specified will be handled for us.**\n\n```json\n{\n  \"data\": {\n    \"target\": \"ocean_proximity\"\n  },\n  \"preprocessor\": {\n    \"fill\": \"ALL\",\n    \"label-encode\": \"ocean_proximity\"\n  }\n}\n```\n\nNow, we can override more components to take advantage of the built in ensembling of SVM's, and nearest neighbors modeling in nylon.\n\n```python\n json_file = {\n    \"data\": {\n        \"target\": \"ocean_proximity\"\n    },\n    \"preprocessor\": {\n        \"fill\": \"ALL\",\n        \"label-encode\": \"ocean_proximity\"\n    },\n    \"modeling\": {\n        \"type\": [\"svms\", \"neighbors\"]\n    }\n}\n```\n\nNow we can call,\n\n```python\nnylon_object.run(json_file)\n```\n\nThis will return a fully trained nylon object. You can access all information about this particular iteration in the ```.results``` field of the object.\n\n## Demos\n\n\u003cdiv align=\"center\"\u003e\n \n![alt text](/data_storage/github_images/sk_to_nylon.png)\n![alt text](/data_storage/github_images/sk_to_nylon_second.png)\n \n\u003c/div\u003e\n\n## Asking for help\nWelcome to the Nylon community!\n\nIf you have any questions, feel free to:\n1. [Read the Docs](https://docs.paraglide.ai/)\n2. [Search through the issues](https://github.com/Palashio/nylon/issues)\n3. [Join our Discord](https://discord.gg/udZSbhws9D)\n\n\n## Contact\n\nShoot me an email at [hello@paraglide.ai](mailto:hello@paraglide.ai) if you'd like to get in touch!\n\nFollow me on [twitter](https://twitter.com/_pshah) for updates and my insights about modern AI!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashio%2Fnylon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalashio%2Fnylon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashio%2Fnylon/lists"}