{"id":17146268,"url":"https://github.com/tompollard/sammon","last_synced_at":"2025-10-29T23:46:19.880Z","repository":{"id":16166983,"uuid":"18913173","full_name":"tompollard/sammon","owner":"tompollard","description":"Sammon mapping in Python","archived":false,"fork":false,"pushed_at":"2019-06-27T01:06:33.000Z","size":20,"stargazers_count":32,"open_issues_count":2,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T15:13:18.495Z","etag":null,"topics":["data","visualization"],"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/tompollard.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}},"created_at":"2014-04-18T13:01:50.000Z","updated_at":"2025-03-12T08:08:06.000Z","dependencies_parsed_at":"2022-09-10T11:42:49.565Z","dependency_job_id":null,"html_url":"https://github.com/tompollard/sammon","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/tompollard%2Fsammon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompollard%2Fsammon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompollard%2Fsammon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompollard%2Fsammon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tompollard","download_url":"https://codeload.github.com/tompollard/sammon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248698778,"owners_count":21147522,"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":["data","visualization"],"created_at":"2024-10-14T21:08:15.214Z","updated_at":"2025-10-29T23:46:14.848Z","avatar_url":"https://github.com/tompollard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sammon mapping in Python\n========================\nDate: 18 April 2014\n\nsammontest.py\n-------------\nRun sammontest.py() with no arguments to test sammon.py\non Fisher's iris dataset. You should get an output image \nas the one shown below:\n\n![alt tag](http://i.imgur.com/ngfNeEn.png)\n\nsammon.py\n---------\nSimple python implementation of Sammon's non-linear mapping \nalgorithm [1]. Perform Sammon mapping on dataset x\n\ny = sammon(x) applies the Sammon nonlinear mapping procedure on\nmultivariate data x, where each row represents a pattern and each column\nrepresents a feature.  On completion, y contains the corresponding\nco-ordinates of each point on the map.  By default, a two-dimensional\nmap is created.  Note if x contains any duplicated rows, SAMMON will\nfail (ungracefully). \n\n[y,E] = sammon(x) also returns the value of the cost function in E (i.e.\nthe stress of the mapping).\n\nAn N-dimensional output map is generated by y = sammon(x,n) .\n\nA set of optimisation options can be specified using optional\narguments, y = sammon(x,n,[OPTS]):\n\n* maxiter        - maximum number of iterations\n* tolfun         - relative tolerance on objective function\n* maxhalves      - maximum number of step halvings\n* input          - {'raw','distance'} if set to 'distance', X is interpreted as a matrix of pairwise distances.\n* display        - 0 to 2. 0 least verbose, 2 max verbose.\n* init           - {'pca', 'random'}\n\nThe default options are retrieved by calling sammon(x) with no\nparameters.\n\nAuthors\n-------\nTom J. Pollard (https://twitter.com/tompollard)\n\nPorted from MATLAB implementation by \n  Gavin C. Cawley and Nicola L. C. Talbot\n\nReferences\n----------\n[1] Sammon, John W. Jr., \"A Nonlinear Mapping for Data\n    Structure Analysis\", IEEE Transactions on Computers,\n    vol. C-18, no. 5, pp 401-409, May 1969.\n\nCopyright\n---------\nCopyright   : (c) Dr Gavin C. Cawley, November 2007.\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompollard%2Fsammon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftompollard%2Fsammon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompollard%2Fsammon/lists"}