Coder Social home page Coder Social logo

error in housing module about cost-of-living HOT 1 OPEN

rcsmit avatar rcsmit commented on June 12, 2024
error in housing module

from cost-of-living.

Comments (1)

Sikerdebaard avatar Sikerdebaard commented on June 12, 2024 1

Didn't expect someone to run the code so soon. The module tries to load a model that is not published publicly yet. Attached you will find a minified model that should get you started. It contains all of the full models data but with a reduced parameter space and with training data removed. Unzip it and put it in data/2023-02-21-mini-16-model-reduced.pickle in your working directory and it should work. In your specific case it looks like you would put it here: C:\Users\rcxsm\Documents\python_scripts\cost-of-living-main\data\2023-02-21-mini-16-model-reduced.pickle.

2023-02-21-mini-16-model-reduced.zip

Edit -- adding the models summary sheet as that one might be unavailable in the minified version. The model was trained on 1301 samples/listings from various real estate agencies.

                              OLS Regression Results                              
==================================================================================
Dep. Variable:     rental_price_per_month   R-squared:                       0.823
Model:                                OLS   Adj. R-squared:                  0.814
Method:                     Least Squares   F-statistic:                     90.09
Date:                    Tue, 21 Feb 2023   Prob (F-statistic):               0.00
Time:                            09:39:08   Log-Likelihood:                -9810.6
No. Observations:                    1301   AIC:                         1.975e+04
Df Residuals:                        1236   BIC:                         2.009e+04
Df Model:                              64                                         
Covariance Type:                nonrobust                                         
=================================================================================================
                                    coef    std err          t      P>|t|      [0.025      0.975]
-------------------------------------------------------------------------------------------------
const                           134.5353     83.411      1.613      0.107     -29.108     298.179
B-cit-almere                    161.7596    205.979      0.785      0.432    -242.347     565.866
B-cit-amersfoort                264.3303    344.807      0.767      0.443    -412.141     940.802
B-cit-amstelveen                308.1976    168.016      1.834      0.067     -21.430     637.826
B-cit-amsterdam                -347.6048     75.872     -4.581      0.000    -496.456    -198.754
B-cit-arnhem                   -227.0033    238.663     -0.951      0.342    -695.233     241.227
B-cit-breda                    -106.5645    142.216     -0.749      0.454    -385.576     172.447
B-cit-delft                     195.8113    279.924      0.700      0.484    -353.367     744.990
B-cit-denbosch                 -412.6310    232.550     -1.774      0.076    -868.867      43.606
B-cit-denhaag                  -119.6030     99.787     -1.199      0.231    -315.373      76.167
B-cit-eindhoven                -215.2302     90.770     -2.371      0.018    -393.311     -37.149
B-cit-enschede                   44.3094    162.232      0.273      0.785    -273.972     362.591
B-cit-groningen                 203.0405    133.061      1.526      0.127     -58.010     464.091
B-cit-haarlem                  -103.3250    191.303     -0.540      0.589    -478.640     271.990
B-cit-heerlen                   -30.4604    341.550     -0.089      0.929    -700.543     639.622
B-cit-hilversum                  -0.7781    245.965     -0.003      0.997    -483.333     481.776
B-cit-leeuwarden                -76.3973    176.916     -0.432      0.666    -423.487     270.692
B-cit-leiden                     -4.1079    188.684     -0.022      0.983    -374.284     366.068
B-cit-maastricht               -130.6486    131.382     -0.994      0.320    -388.404     127.107
B-cit-nijmegen                 -194.1941    244.600     -0.794      0.427    -674.072     285.684
B-cit-oss                        27.7217    261.609      0.106      0.916    -485.526     540.970
B-cit-rotterdam                 -71.6555     87.979     -0.814      0.416    -244.261     100.950
B-cit-schiedam                  189.9387    433.767      0.438      0.662    -661.063    1040.940
B-cit-sittard                    14.8830    272.027      0.055      0.956    -518.804     548.570
B-cit-tilburg                   -45.8354    160.095     -0.286      0.775    -359.923     268.252
B-cit-utrecht                     9.2787    149.320      0.062      0.950    -283.671     302.228
B-cit-veldhoven                 307.0151    414.873      0.740      0.459    -506.917    1120.948
B-cit-zaandam                   423.5952    409.088      1.035      0.301    -378.988    1226.178
B-cit-zwolle                     70.6930    216.403      0.327      0.744    -353.865     495.251
B-out-garden                     57.9473     35.271      1.643      0.101     -11.250     127.145
B-par-aanwezig                   55.1900     29.292      1.884      0.060      -2.278     112.658
B-per-direct-beschikbaar         57.7885     28.256      2.045      0.041       2.353     113.223
B-tra-interieur__gemeubileerd   267.0150     36.153      7.386      0.000     196.087     337.943
B-tra-interieur__gestoffeerd    148.2755     35.002      4.236      0.000      79.605     216.946
B-tra-onderhoudsstaat__goed     -90.7087     30.937     -2.932      0.003    -151.404     -30.013
F-con-inkomenseis                 0.0396      0.010      3.787      0.000       0.019       0.060
F-lay-aantalslaapkamers         -59.4887     18.197     -3.269      0.001     -95.188     -23.789
F-lay-aantalwoonlagen           -28.0163     26.730     -1.048      0.295     -80.458      24.426
F-m2-almere                      11.0080      1.791      6.147      0.000       7.495      14.522
F-m2-amersfoort                   9.3235      4.229      2.205      0.028       1.026      17.621
F-m2-amstelveen                  14.8691      1.410     10.544      0.000      12.103      17.636
F-m2-amsterdam                   27.0669      0.663     40.809      0.000      25.766      28.368
F-m2-arnhem                      14.3070      3.175      4.506      0.000       8.077      20.536
F-m2-breda                       13.5703      1.588      8.547      0.000      10.455      16.685
F-m2-delft                        7.5973      4.661      1.630      0.103      -1.548      16.742
F-m2-denbosch                    17.9068      2.955      6.059      0.000      12.108      23.705
F-m2-denhaag                     16.4068      0.993     16.527      0.000      14.459      18.354
F-m2-eindhoven                   16.6107      0.736     22.573      0.000      15.167      18.054
F-m2-enschede                     7.2692      2.805      2.592      0.010       1.766      12.772
F-m2-groningen                    8.3171      1.700      4.892      0.000       4.982      11.652
F-m2-haarlem                     17.4891      2.156      8.112      0.000      13.259      21.719
F-m2-heerlen                      6.9353      4.707      1.473      0.141      -2.299      16.170
F-m2-hilversum                   13.0549      3.426      3.811      0.000       6.334      19.776
F-m2-leeuwarden                   8.9137      2.433      3.663      0.000       4.140      13.688
F-m2-leiden                      15.3229      2.528      6.060      0.000      10.363      20.283
F-m2-maastricht                  12.7447      1.680      7.586      0.000       9.449      16.041
F-m2-nijmegen                    14.2307      2.824      5.039      0.000       8.690      19.771
F-m2-oss                          9.8021      3.200      3.063      0.002       3.524      16.080
F-m2-rotterdam                   14.6222      0.920     15.887      0.000      12.817      16.428
F-m2-schiedam                    11.9033      5.022      2.370      0.018       2.051      21.756
F-m2-sittard                      6.6620      3.226      2.065      0.039       0.333      12.991
F-m2-tilburg                     13.7931      3.208      4.300      0.000       7.499      20.087
F-m2-utrecht                     15.9663      1.907      8.374      0.000      12.226      19.707
F-m2-veldhoven                    8.7015      3.515      2.476      0.013       1.806      15.597
F-m2-zaandam                      9.5393      4.206      2.268      0.023       1.288      17.790
F-m2-zwolle                       9.1318      3.334      2.739      0.006       2.591      15.673
==============================================================================
Omnibus:                      593.414   Durbin-Watson:                   1.834
Prob(Omnibus):                  0.000   Jarque-Bera (JB):            25659.509
Skew:                           1.389   Prob(JB):                         0.00
Kurtosis:                      24.578   Cond. No.                     2.97e+15
==============================================================================

Notes:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
[2] The smallest eigenvalue is 5.89e-21. This might indicate that there are
strong multicollinearity problems or that the design matrix is singular.

from cost-of-living.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.