openavmkit.land
LandSLICEModel
LandSLICEModel(alpha, beta, gam_L, med_size, size_field)
SLICE stands for "Smooth Location w/ Increasing-Concavity Equation."
Source code in openavmkit/land.py
793 794 795 796 797 798 799 800 801 802 803 804 805 |
|
fit_land_SLICE_model
fit_land_SLICE_model(df_in, size_field='land_area_sqft', value_field='land_value', verbose=False)
Fits land values using SLICE: "Smooth Location with Increasing-Concavity Equation"
This model takes already-existing raw per-parcel land values and separates the contribution of land size and locational premium. It also enforces three constraints: 1. Locational premium must change smoothly over space 2. Land value in any fixed location must increase monotonically with land size 3. The marginal value of each additional unit of land size must decrease monotonically
The output is an object that encodes the final fitted land values, the locational premiums, and the local land factors. Fitted land values are derived by simply multiplying locational premium times local land factor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df_in
|
DataFrame
|
Input data |
required |
size_field
|
str
|
The name of your land size field |
'land_area_sqft'
|
value_field
|
str
|
The name of your land value field |
'land_value'
|
verbose
|
bool
|
Whether to print verbose output |
False
|
Source code in openavmkit/land.py
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 |
|