{"id":19973315,"url":"https://github.com/jsmith/tensortools","last_synced_at":"2025-08-08T14:07:46.252Z","repository":{"id":131851375,"uuid":"124943939","full_name":"jsmith/tensortools","owner":"jsmith","description":"A simple repository with my Python ML stuff","archived":false,"fork":false,"pushed_at":"2019-10-22T14:53:49.000Z","size":1062,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T18:30:52.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jsmith.github.io/tensortools/","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/jsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-03-12T19:57:36.000Z","updated_at":"2019-02-13T14:34:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c509844-0815-41e2-bb73-6107ad77dbe8","html_url":"https://github.com/jsmith/tensortools","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jsmith/tensortools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Ftensortools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Ftensortools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Ftensortools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Ftensortools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsmith","download_url":"https://codeload.github.com/jsmith/tensortools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Ftensortools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260346864,"owners_count":22995150,"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":[],"created_at":"2024-11-13T03:11:07.066Z","updated_at":"2025-06-17T11:08:34.477Z","avatar_url":"https://github.com/jsmith.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jsmith/tensortools.png?branch=master)](https://travis-ci.org/jsmith/tensortools)\n[![Docs](https://readthedocs.org/projects/tensortools/badge/?version=latest)](https://tensortools.readthedocs.io/)\n\n# TensorTools\nA simple repository which implements common things I use in my ML projects so I don't have to repeat myself. See `examples/` for some examples which use this repository. \n\nBetter API documentation coming ASAP!\n\n# Installation\n```bash\npip install tensortools\n```\n\n# Example\n```python\nimport tensorflow as tf\nimport tensortools as tt\nimport numpy as np\n\n# Generate images with random shapes for object detection\nimage_generator = tf.generator.Generator()\nimages = image_generator.generate(n_images=1, height=100, width=100, max_shapes=2)\nimage = images[0]\ntt.image.show(image)\n\n# Some simple ops\nvector = tt.ops.flatten(image, has_batch=False)\nwith tf.Session() as sess:\n  vector = sess.run([vector])\n\n# Generate anchors for YOLO algorithm using KMeans\nannotations = load_annotations()\nanchors = tt.yolo.generate_anchors()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmith%2Ftensortools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsmith%2Ftensortools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmith%2Ftensortools/lists"}