{"id":27357634,"url":"https://github.com/tixfeniks/batch-iterator","last_synced_at":"2025-10-23T23:10:25.831Z","repository":{"id":99643630,"uuid":"88194316","full_name":"TIXFeniks/batch-iterator","owner":"TIXFeniks","description":"Usefull python implementation of batch iterator.","archived":false,"fork":false,"pushed_at":"2018-01-03T10:59:33.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T21:17:34.732Z","etag":null,"topics":["batch","data-analysis","data-analytics","data-science","iterate","machine-learning","mini-batch","minibatch","python"],"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/TIXFeniks.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,"zenodo":null}},"created_at":"2017-04-13T18:23:59.000Z","updated_at":"2024-05-09T12:34:38.000Z","dependencies_parsed_at":"2023-03-30T20:06:09.281Z","dependency_job_id":null,"html_url":"https://github.com/TIXFeniks/batch-iterator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TIXFeniks/batch-iterator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIXFeniks%2Fbatch-iterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIXFeniks%2Fbatch-iterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIXFeniks%2Fbatch-iterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIXFeniks%2Fbatch-iterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TIXFeniks","download_url":"https://codeload.github.com/TIXFeniks/batch-iterator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIXFeniks%2Fbatch-iterator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264403798,"owners_count":23602621,"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":["batch","data-analysis","data-analytics","data-science","iterate","machine-learning","mini-batch","minibatch","python"],"created_at":"2025-04-12T23:53:27.472Z","updated_at":"2025-10-11T20:48:32.869Z","avatar_url":"https://github.com/TIXFeniks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# batch-iterator\nUsefull python implementation of batch iterator. \n\n# limitations\ncan only iterate on numpy arrays(or on the objects, convertable to them)\n\n# requirements\nnumpy\n\n# usage\n```python\nx = np.arange(10)\ny = np.arange(10,20)\nz = np.arange(10*10).reshape((10,-1))\n\nfor x_b,y_b,z_b in iterate_minibatches(x,y,z, batchsize=2,shuffle = False):\n    print(\"batch :\")\n    print(x_b, y_b, z_b)\n```\n\nOutputs:\u003cbr/\u003e\nbatch :\u003cbr/\u003e\n[0 1] [10 11]\u003cbr/\u003e\n[[ 0  1  2  3  4  5  6  7  8  9]\n [10 11 12 13 14 15 16 17 18 19]]\u003cbr/\u003e\nbatch :\u003cbr/\u003e\n[2 3] [12 13]\u003cbr/\u003e\n[[20 21 22 23 24 25 26 27 28 29]\n [30 31 32 33 34 35 36 37 38 39]]\u003cbr/\u003e\nbatch :\u003cbr/\u003e\n[4 5] [14 15]\u003cbr/\u003e [[40 41 42 43 44 45 46 47 48 49]\n [50 51 52 53 54 55 56 57 58 59]]\u003cbr/\u003e\nbatch :\u003cbr/\u003e\n[6 7] [16 17] \u003cbr/\u003e\n[[60 61 62 63 64 65 66 67 68 69]\n [70 71 72 73 74 75 76 77 78 79]]\u003cbr/\u003e\nbatch :\u003cbr/\u003e\n[8 9] [18 19]\u003cbr/\u003e\n[[80 81 82 83 84 85 86 87 88 89]\n [90 91 92 93 94 95 96 97 98 99]]\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftixfeniks%2Fbatch-iterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftixfeniks%2Fbatch-iterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftixfeniks%2Fbatch-iterator/lists"}