{"id":17998204,"url":"https://github.com/primaryobjects/unsupervised","last_synced_at":"2025-03-26T04:31:46.005Z","repository":{"id":139343289,"uuid":"97137956","full_name":"primaryobjects/unsupervised","owner":"primaryobjects","description":"Applying unsupervised learning using K-means clustering.","archived":false,"fork":false,"pushed_at":"2017-09-10T19:26:58.000Z","size":194,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T06:41:35.124Z","etag":null,"topics":["ai","artificial-intelligence","categorization","clustering","colors","etf","etfs","javascript","k-means","k-means-clustering","machine-learning","machine-learning-algorithms","natural-language-processing","nlp","nlp-machine-learning","r","rgb","topic-discovery"],"latest_commit_sha":null,"homepage":null,"language":"R","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/primaryobjects.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":"2017-07-13T15:25:07.000Z","updated_at":"2025-02-07T10:22:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec9cf8fd-2624-4a24-929c-7fef1b03ec33","html_url":"https://github.com/primaryobjects/unsupervised","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Funsupervised","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Funsupervised/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Funsupervised/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Funsupervised/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/unsupervised/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245589266,"owners_count":20640254,"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":["ai","artificial-intelligence","categorization","clustering","colors","etf","etfs","javascript","k-means","k-means-clustering","machine-learning","machine-learning-algorithms","natural-language-processing","nlp","nlp-machine-learning","r","rgb","topic-discovery"],"created_at":"2024-10-29T21:24:34.967Z","updated_at":"2025-03-26T04:31:45.998Z","avatar_url":"https://github.com/primaryobjects.png","language":"R","readme":"Unsupervised\n=====================\n\nExamples of applying unsupervised machine learning using K-means clustering.\n\nRead the tutorial: [Intelligent Topic Detection with Unsupervised Learning](http://www.primaryobjects.com/2017/07/24/intelligent-topic-detection-with-unsupervised-learning/)\n\n## Colors\n\nUnsupervised learning is applied to a data set of randomly generated [colors](/colors/colors.R). The red, green, and blue values are used as features to categorize each color under a specific parent category.\n\nFor example, purple might be categories as Red or Blue. Likewise, Sky Blue would be categorized under Blue.\n\n### Cluster Categories\n\n- Red\n- Green\n- Blue\n\n### Results\n\nThe following graphs show the results of clustering and categorizing colors by their red, green, and blue values.\n\n### 1,000 Randomly Generated Colors\n\n![1,000 Randomly Generated Colors](/images/plot0.png)\n\n### 100 Randomly Generated Colors\n\n![100 Randomly Generated Colors](/images/plot1.png)\n\n### 3 Detected Clusters Within Colors\n\n![3 Detected Clusters Within Colors](/images/plot2.png)\n\n### Assigning Colors to a Cluster\n\n![Assigning Colors to a Cluster](/images/plot3.png)\n\n### Viewing Colors Within Their Cluster\n\n![Viewing Colors Within Their Cluster](/images/plot4.png)\n\n### Predicting the Category for New Colors\n\nThe following three colors were used as [new data](/colors/test.txt) for predicting the category for.\n\n```text\n  red green blue     hex x        y group label\n1 241    52   11 #F1340B 1 15807499     2   red\n2  80   187  139 #50BB8B 2  5290891     3 green\n3  34    15  194 #220FC2 3  2232258     1  blue\n```\n\n![Predicting the Category for New Colors](/images/plot5.png)\n\n## Exchange Traded Stock and Bond Funds (ETF)\n\nUnsupervised learning is applied to a data set of [exchange traded funds](/etf/data/vanguard-etf.tsv). The percentage values for \"Year to Date\", \"1 Year\", \"5 Year\", and \"10 Year\" returns are used as features to categorize each ETF under a specific parent category. Example code is provided in [R](/etf/etf.R) and [JavaScript](/etf/etf.js).\n\n### Cluster Categories\n\n- International\n- StockBigGain\n- Stock\n- Bond\n- SmallMidLargeCap\n\n### Results\n\nThe following output shows the results of clustering and categorizing ETF funds based on their percentage returns.\n\n### Training Set Category Results\n\n[Results](/etf/results/train.csv)\n\n### Test Set Category Results\n\n[Results](/etf/results/test.csv)\n\n### Results from JavaScript\n\n[Results](/etf/results/train-js.csv)\n\n## License\n\nMIT\n\n## Author\n\nKory Becker\n\nhttp://www.primaryobjects.com/kory-becker\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Funsupervised","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Funsupervised","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Funsupervised/lists"}