{"id":18860222,"url":"https://github.com/modelzoo/priceprediction","last_synced_at":"2025-04-14T12:30:38.663Z","repository":{"id":86739052,"uuid":"151748390","full_name":"ModelZoo/PricePrediction","owner":"ModelZoo","description":"Boston Housing Prediction ","archived":false,"fork":false,"pushed_at":"2019-11-16T19:04:00.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T01:48:30.086Z","etag":null,"topics":[],"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/ModelZoo.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}},"created_at":"2018-10-05T16:23:35.000Z","updated_at":"2020-09-04T09:53:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa26d395-7533-448c-99f7-5f495faef761","html_url":"https://github.com/ModelZoo/PricePrediction","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/ModelZoo%2FPricePrediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModelZoo%2FPricePrediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModelZoo%2FPricePrediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModelZoo%2FPricePrediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModelZoo","download_url":"https://codeload.github.com/ModelZoo/PricePrediction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248881277,"owners_count":21176823,"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-08T04:22:45.507Z","updated_at":"2025-04-14T12:30:38.648Z","avatar_url":"https://github.com/ModelZoo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PricePrediction\n\nSimple Linear Regression Model implemented by [ModelZoo](https://github.com/ModelZoo/ModelZoo).\n\n## Installation\n\nFirstly you need to clone this repository and install dependencies with pip:\n\n```\npip3 install -r requirements.txt\n```\n\n## Dataset\n\nWe use BostonHousing dataset for example.\n\n## Usage\n\nWe can run this model like this:\n\n```\npython3 train.py\n```\n\nOutputs like this:\n\n```\nEpoch 1/100\n 1/13 [=\u003e............................] - ETA: 0s - loss: 816.1798\n13/13 [==============================] - 0s 4ms/step - loss: 457.9925 - val_loss: 343.2489\n\nEpoch 2/100\n 1/13 [=\u003e............................] - ETA: 0s - loss: 361.5632\n13/13 [==============================] - 0s 3ms/step - loss: 274.7090 - val_loss: 206.7015\nEpoch 00002: saving model to checkpoints/model.ckpt\n\nEpoch 3/100\n 1/13 [=\u003e............................] - ETA: 0s - loss: 163.5308\n13/13 [==============================] - 0s 3ms/step - loss: 172.4033 - val_loss: 128.0830\n\nEpoch 4/100\n 1/13 [=\u003e............................] - ETA: 0s - loss: 115.4743\n13/13 [==============================] - 0s 3ms/step - loss: 112.6434 - val_loss: 85.0848\nEpoch 00004: saving model to checkpoints/model.ckpt\n\nEpoch 5/100\n 1/13 [=\u003e............................] - ETA: 0s - loss: 149.8252\n13/13 [==============================] - 0s 3ms/step - loss: 77.0281 - val_loss: 57.9716\n....\n\nEpoch 42/100\n 7/13 [===============\u003e..............] - ETA: 0s - loss: 20.5911\n13/13 [==============================] - 0s 8ms/step - loss: 22.4666 - val_loss: 23.7161\nEpoch 00042: saving model to checkpoints/model.ckpt\n```\n\nIt runs only 42 epochs and stopped early, because there are no more good evaluation results for 20 epochs.\n\nWhen finished, we can find two folders generated named `checkpoints` and `events`.\n\nGo to `events` and run TensorBoard:\n\n```\ncd events\ntensorboard --logdir=.\n```\n\nTensorBoard like this:\n\n![](https://ws4.sinaimg.cn/large/006tNbRwgy1fvxrcajse2j31kw0hkgnf.jpg)\n\nThere are training batch loss, epoch loss, eval loss.\n\nAnd also we can find checkpoints in `checkpoints` dir.\n\nIt saved the best model named `model.ckpt` according to eval score, and it also saved checkpoints every 2 epochs.\n\nNext we can predict using existing checkpoints and `infer.py`.\n\nNow we've restored the specified model `model-best.ckpt` and prepared test data, outputs like this:\n\n```python\n[[ 9.637125 ]\n [21.368305 ]\n [20.898445 ]\n [33.832504 ]\n [25.756516 ]\n [21.264557 ]\n [29.069794 ]\n [24.968184 ]\n ...\n [36.027283 ]\n [39.06852  ]\n [25.728745 ]\n [41.62165  ]\n [34.340042 ]\n [24.821484 ]]\n```\n\nOK, we've finished restoring and predicting. Just so quickly.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodelzoo%2Fpriceprediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodelzoo%2Fpriceprediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodelzoo%2Fpriceprediction/lists"}