{"id":24024675,"url":"https://github.com/openml/openml-tensorflow","last_synced_at":"2025-04-16T04:23:28.095Z","repository":{"id":62577796,"uuid":"292290349","full_name":"openml/openml-tensorflow","owner":"openml","description":"Tensorflow extension for openml-python","archived":false,"fork":false,"pushed_at":"2024-12-03T16:55:27.000Z","size":5402,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T13:42:05.498Z","etag":null,"topics":["hacktoberfest","openml","python","tensorflow"],"latest_commit_sha":null,"homepage":"https://openml.github.io/openml-tensorflow/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"openml","open_collective":"openml"}},"created_at":"2020-09-02T13:26:26.000Z","updated_at":"2024-12-03T16:54:53.000Z","dependencies_parsed_at":"2024-04-07T21:26:03.906Z","dependency_job_id":"78607581-304a-4a19-954d-ecf8a3308ebe","html_url":"https://github.com/openml/openml-tensorflow","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"a3bc69c2aa404cb54bea1c492edb8a6941c1175b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openml%2Fopenml-tensorflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openml%2Fopenml-tensorflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openml%2Fopenml-tensorflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openml%2Fopenml-tensorflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openml","download_url":"https://codeload.github.com/openml/openml-tensorflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249194680,"owners_count":21228034,"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":["hacktoberfest","openml","python","tensorflow"],"created_at":"2025-01-08T15:34:20.687Z","updated_at":"2025-04-16T04:23:28.076Z","avatar_url":"https://github.com/openml.png","language":"Python","funding_links":["https://github.com/sponsors/openml","https://opencollective.com/openml"],"categories":[],"sub_categories":[],"readme":"# Tensorflow extension for OpenML python\n\nTensorflow extension for [openml-python API](https://github.com/openml/openml-python). This library provides a simple way to run your Tensorflow models on OpenML tasks. \n\n#### Installation Instructions:\n\n`pip install openml-tensorflow`\n\nPyPi link https://pypi.org/project/openml-tensorflow/\n\n#### Usage\nImport openML libraries\n```python\nimport openml\nimport openml_tensorflow\nfrom tensorflow.keras import layers, models\n\n```\nCreate  and compile a tensorflow model\n```python\n\nmodel = models.Sequential()\nmodel.add(layers.Conv2D(128, (3, 3), activation='relu', input_shape=IMG_SHAPE))\nmodel.add(layers.MaxPooling2D((2, 2)))\nmodel.add(layers.Conv2D(64, (3, 3), activation='relu'))\nmodel.add(layers.MaxPooling2D((2, 2)))\nmodel.add(layers.Conv2D(64, (3, 3), activation='relu'))\nmodel.add(layers.Flatten())\nmodel.add(layers.Dense(64, activation='relu'))\nmodel.add(layers.Dense(84, activation='relu'))\nmodel.add(layers.Dense(19, activation='softmax'))  \nmodel.compile(optimizer='adam',\n              loss='categorical_crossentropy',\n              metrics=['AUC'])\n\n# We will compile using the Adam optimizer while targeting accuracy.\nmodel.compile(optimizer='adam',\n              loss='sparse_categorical_crossentropy',\n              metrics=['AUC'])\n```\nDownload the task from openML and run the model on task.\n```python\ntask = openml.tasks.get_task(362071)\nrun = openml.runs.run_model_on_task(model, task, avoid_duplicate_runs=False)\nrun.publish()\nprint('URL for run: %s/run/%d' % (openml.config.server, run.run_id))\n\n```\n\nNote: The input layer of the network should be compatible with OpenML data output shape. Please check [examples](/docs/Examples/) for more information.\n\n\nAdditionally, if you want to publish the run with onnx file, then you must call ```openml_tensorflow.add_onnx_to_run()``` immediately before ```run.publish()```. \n\n```python\nrun = openml_tensorflow.add_onnx_to_run(run)\n```\n\n#### Using docker image\n\nThe docker container has the latest version of [OpenML-Tensorflow](https://github.com/openml/openml-tensorflow) downloaded and pre-installed. It can be used to run TensorFlow Deep Learning analysis on OpenML datasets. \nSee [docker](docs/Docker%20reference/Docker.md).\n\n\nThis library is currently under development, please report any bugs or feature reuest in issues section.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenml%2Fopenml-tensorflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenml%2Fopenml-tensorflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenml%2Fopenml-tensorflow/lists"}