{"id":25452341,"url":"https://github.com/raphaelsenn/house-price-prediction","last_synced_at":"2025-08-03T00:34:20.529Z","repository":{"id":230698558,"uuid":"779962956","full_name":"raphaelsenn/house-price-prediction","owner":"raphaelsenn","description":"Simple Neural Network (raw python, just using numpy) to predict house prices over a kaggle dataset (Boston House Prices).","archived":false,"fork":false,"pushed_at":"2024-07-03T12:20:01.000Z","size":995,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T23:05:28.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/raphaelsenn.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":"2024-03-31T09:45:23.000Z","updated_at":"2024-10-26T05:35:26.000Z","dependencies_parsed_at":"2024-11-22T21:01:16.098Z","dependency_job_id":null,"html_url":"https://github.com/raphaelsenn/house-price-prediction","commit_stats":null,"previous_names":["raphsenn/house-price-prediction","raphaelsenn/house-price-prediction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelsenn%2Fhouse-price-prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelsenn%2Fhouse-price-prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelsenn%2Fhouse-price-prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelsenn%2Fhouse-price-prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelsenn","download_url":"https://codeload.github.com/raphaelsenn/house-price-prediction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527097,"owners_count":22085919,"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":"2025-02-17T23:05:31.382Z","updated_at":"2025-05-16T12:13:42.213Z","avatar_url":"https://github.com/raphaelsenn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# house-price-prediction\nSimple Neural Network (raw python, just using numpy) to predict house prices over a kaggle dataset (Boston House Prices).\n\n### About the dataset\nThe dataset contains information regarding housing prices in Boston, Massachusetts. \nIt encompasses various factors such as crime rate, nitric oxide concentration, and proportion of non-retail business acres per town, among others. \nThis dataset is derived from the original [Boston House Prices dataset](https://www.kaggle.com/datasets/vikrishnan/boston-house-prices), which was collected in 1978 by Harrison, D. and Rubinfeld, D.L.\nThe goal of this dataset is to facilitate research and analysis in the field of housing market dynamics and predictive modeling. \n\n##### Content of the dataset\n- CRIM per capita crime rate by town \n- ZN proportion of residential land zoned for lots over 25,000 sq.ft. \n- INDUS proportion of non-retail business acres per town \n- CHAS Charles River dummy variable (= 1 if tract bounds river; 0 otherwise) \n- NOX nitric oxides concentration (parts per 10 million) \n- RM average number of rooms per dwelling \n- AGE proportion of owner-occupied units built prior to 1940 \n- DIS weighted distances to five Boston employment centres \n- RAD index of accessibility to radial highways \n- TAX full-value property-tax rate per $10,000 \n- PTRATIO pupil-teacher ratio by town \n- B 1000(Bk - 0.63)^2 where Bk is the proportion of blacks by town (wtf)\n- LSTAT % lower status of the population \n- MEDV Median value of owner-occupied homes in $1000's\n\n### About the Neural-Network\n\n\u003cp float=\"left\"\u003e\n   \u003cimg src=\"./res/nn.png\"\u003e\n\u003c/p\u003e\n\n#### Forward propagation\nPropagate forward throw the neural net.\n\u003cp float=\"left\"\u003e\n   \u003cimg src=\"./res/forward.png\"\u003e\n\u003c/p\u003e\n\n\n#### Calculate error\nI use the MSE (Mean squared error) function.\n\u003cp float=\"left\"\u003e\n   \u003cimg src=\"./res/error.png\"\u003e\n\u003c/p\u003e\n\n\n#### Backpropagation\n\u003cp float=\"left\"\u003e\n   \u003cimg src=\"./res/backprop.png\"\u003e\n\u003c/p\u003e\n\n\n#### How to use\n\n```python\nfrom neuralnet import NeuralNetwork, read_data\n# Load the data.\nX, y = read_data('/tests/housing.csv')\n\n# Split in training and testing data.\nX_train, y_train = X[:405], y[:405] # 405 Values\nX_test, y_test = X[405:], y[405:] # 101 Values\n\n# Create the NeuralNet.\nneurons_input, neurons_hidden, neurons_output = 13, 8, 1\nNN = NeuralNetwork(neurons_input, neurons_hidden, neurons_output)\n\n# Train the NeuralNet.\nNN.train(X_train, y_train, 5000, 0.001)\n\n# Evaluate.\nMSE = NN.evaluate(X_test, y_test) # MSE for mean squared error\nRSE = np.sqrt(MSE) # RSE for root squared error\nprint(RSE)\n```\n------------------\n#### Settings\n- Learning rate: 0.001\n- Epochs: 500\n\n##### Result\n```shell\nRoot mean squared error: 3.69\n```\n-----------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelsenn%2Fhouse-price-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelsenn%2Fhouse-price-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelsenn%2Fhouse-price-prediction/lists"}