{"id":25429936,"url":"https://github.com/davidyslu/tensroflow-mnist","last_synced_at":"2026-07-18T22:31:18.581Z","repository":{"id":93934543,"uuid":"161316239","full_name":"davidyslu/tensroflow-mnist","owner":"davidyslu","description":"This repository is going to use TensorFlow to train the MNIST network.","archived":false,"fork":false,"pushed_at":"2018-12-15T12:58:07.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T12:39:46.539Z","etag":null,"topics":["mnist","python","tensroflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidyslu.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}},"created_at":"2018-12-11T10:22:13.000Z","updated_at":"2021-08-27T10:25:23.000Z","dependencies_parsed_at":"2023-04-08T04:47:49.700Z","dependency_job_id":null,"html_url":"https://github.com/davidyslu/tensroflow-mnist","commit_stats":null,"previous_names":["davidyslu/tensroflow-mnist","yungshenglu/tensroflow-mnist"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidyslu/tensroflow-mnist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Ftensroflow-mnist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Ftensroflow-mnist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Ftensroflow-mnist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Ftensroflow-mnist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidyslu","download_url":"https://codeload.github.com/davidyslu/tensroflow-mnist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2Ftensroflow-mnist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013643,"owners_count":26085298,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mnist","python","tensroflow"],"created_at":"2025-02-17T02:32:28.368Z","updated_at":"2025-10-13T00:48:02.253Z","avatar_url":"https://github.com/davidyslu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TensorFlow MNIST\n\nThis repository is going to use TensorFlow to train the MNIST network.\n\n---\n## File Structure\n\n```\nmnist/\n    |--- out/                       # For the ouput files\n    |--- src/                       # Source code are in this directory\n        |--- mnist_fully.py         # 2-Hidden Layer Fully Connected NN with TensorFlow\n        |--- mnist_fully_model.py   # Add save and restore in mnist_fully.py\n    |--- README.md      \n    |--- LICENSE\n    |--- .gitignore     \n```\n\n---\n## Installation\n\n\u003e The following instructions are for installing on **Ubuntu Linux 16.04**\n\n### TensorFlow\n\n\u003e TensorFlow is tested and supported on the following 64-bit systems:\n\u003e * Ubuntu 16.04 or later\n\u003e * Windows 7 or later\n\u003e * macOS 10.12.6 (Sierra) or later (no GPU support)\n\u003e * Raspbian 9.0 or later\n\n1. Install TensorFlow\n    \u003e For Python 2.7, you can follow the instructions [here](https://www.tensorflow.org/install/pip?lang=python2).\n    * Prerequisite (for **Python 3 (Python 3.4, 3.5, 3.6)**)\n        ```bash\n        # Check if your Python environment is already configured\n        $ python3 --version\n        $ pip3 --version\n        $ virtualenv --version\n        # If the above packages are already installed, skip to the next step\n        $ sudo apt-get update\n        $ sudo apt-get install python3-dev python3-pip\n        # Install for system-wide\n        $ sudo pip3 install -U virtualenv\n        ```\n    * Create a virtual environment (recommended)\n        ```bash\n        # Create a new vitrual environment by choosing a Python interpreter and making a ./env directory to hold it\n        $ virtualenv --system-site-packages -p python3 ./venv\n        # Activate the virtual environement using a shell-specific command (e.g., sg, bash, etc.)\n        $ source ./venv/bin/activate\n        # When virtualenv is active, your shell prompt is prefixed with (venv).\n        (venv) $\n        # Install packages within a virtual environment without affecting the host system setup. Start by upgrading pip:\n        (venv) $ pip install --upgrade pip\n        # Show packages installed within the virtual environment\n        (venv) $ pip list\n        # To exit virtualenv later\n        (venv) $ deactivate\n        ```\n    * Install TensorFlow with Python's pip package manager \n        ```bash\n        # Current release for GPU-only (Python 2.7)\n        (venv) $ pip install --upgrade tensorflow\n        # GPU package for CUDA-enabled GPU cards (Python 2.7)\n        (venv) $ pip install --upgrade tensorflow-gpu\n        ```\n2. Run the example program `hello.py`\n    ```bash\n    # Make sure your current directory is src/\n    (venv) $ python hello.py\n    b'Hello, TensorFlow!'\n    ```\n\n---\n## Execution\n\n* `./src/mnist_fully.py`\n    ```bash\n    $ python mnist_fully.py\n    2018-12-11 18:57:18.102112: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\n    Step 1, Minibatch Loss= 8470.1895, Training Accuracy= 0.328\n    Step 100, Minibatch Loss= 250.3591, Training Accuracy= 0.875\n    Step 200, Minibatch Loss= 173.7493, Training Accuracy= 0.828\n    Step 300, Minibatch Loss= 155.4185, Training Accuracy= 0.820\n    Step 400, Minibatch Loss= 81.8946, Training Accuracy= 0.859\n    Step 500, Minibatch Loss= 18.5791, Training Accuracy= 0.938\n    Optimization Finished!\n    Testing Accuracy: 0.8563\n    ```\n* `./src/mnist_fully_model.py`\n    ```bash\n    $ python mnist_fully_model.py\n    2018-12-11 19:18:36.799674: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\n    Step 1, Minibatch Loss= 9184.1309, Training Accuracy= 0.391\n    Step 100, Minibatch Loss= 365.5018, Training Accuracy= 0.852\n    Step 200, Minibatch Loss= 153.3021, Training Accuracy= 0.820\n    Step 300, Minibatch Loss= 24.0616, Training Accuracy= 0.898\n    Step 400, Minibatch Loss= 56.0503, Training Accuracy= 0.875\n    Step 500, Minibatch Loss= 74.1631, Training Accuracy= 0.844\n    Optimization Finished!\n    Model saved in file: /tmp/model.ckpt\n    Model restored from file: /tmp/model.ckpt\n    Testing Accuracy: 0.8559\n    ```\n* `./src/mnist_fully_input.py`\n    ```bash\n    $ python mnist_fully_input.py\n    2018-12-11 19:25:24.784290: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\n    Model restored from file: /tmp/model.ckpt\n    Answer: [7 2 1 ..., 4 5 6]\n    ```\n\n---\n## Contributor\n\n* [David Lu](https://gitbib.com/yungshenglu)\n\n---\n## License\n\nApache License 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2Ftensroflow-mnist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidyslu%2Ftensroflow-mnist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2Ftensroflow-mnist/lists"}