The Blockchain & Climate Institute (BCI) is a progressive think tank providing leading expertise in the deployment of emerging technologies for climate and sustainability actions.
As an international network of scientific and technological experts, BCI is at the forefront of innovative efforts, enabling technology transfers, to create a sustainable and clean global future.
Automated Valuation Model (AVM)
About
AVM is a term for a service that uses mathematical modeling combined with databases of existing properties and transactions to calculate real estate values. The majority of automated valuation models (AVMs) compare the values of similar properties at the same point in time. Many appraisers, and even Wall Street institutions, use this type of model to value residential properties. (see What is an AVM Investopedia.com)
For more detailed info about the AVM, please read the About paper in the resources directory.
Valuation Process
Key Functionality
- Supervised algorithms
- Tree-based & deep learning algorithms
- Feature engineering derived from small clusters of similar properties
- Ensemble (value blending) approaches
Set the required AWS Environment Variables
export ACCESS_KEY=YOURACCESS_KEY
export SECRET_KEY=YOURSECRET_KEY
export BUCKET_NAME=bci-transition-risk-data
export TABLE_DIRECTORY=/dbfs/FileStore/tables/
Install from PyPI
pip install bciavm
Start
Load the training data from the BCI S3 bucket
from bciavm.core.config import your_bucket
from bciavm.utils.bci_utils import ReadParquetFile, get_postcodeOutcode_from_postcode, get_postcodeArea_from_outcode, drop_outliers, preprocess_data
import pandas as pd
dfPricesEpc = pd.DataFrame()
dfPrices = pd.DataFrame()
yearArray = ['2020', '2019']
for year in yearArray:
singlePriceEpcFile = pd.DataFrame(ReadParquetFile(your_bucket, 'epc_price_data/byDate/2021-02-04/parquet/' + year))
dfPricesEpc = dfPricesEpc.append(singlePriceEpcFile)
dfPricesEpc['POSTCODE_OUTCODE'] = dfPricesEpc['Postcode'].apply(get_postcodeOutcode_from_postcode)
dfPricesEpc['POSTCODE_AREA'] = dfPricesEpc['POSTCODE_OUTCODE'].apply(get_postcodeArea_from_outcode)
dfPricesEpc.groupby('TypeOfMatching_m').count()['Postcode']
Preprocess & split the data for training/testing
import bciavm
X_train, X_test, y_train, y_test = bciavm.preprocess_data(dfPricesEpc)
Build the pipeline and get the default pipeline parameters
from bciavm.pipelines import RegressionPipeline
class AVMPipeline(RegressionPipeline):
custom_name = 'AVM Pipeline'
component_graph = {
"Preprocess Transformer": ["Preprocess Transformer"],
'Imputer': ['Imputer', "Preprocess Transformer"],
'One Hot Encoder': ['One Hot Encoder', "Imputer"],
'K Nearest Neighbors Regressor': ['K Nearest Neighbors Regressor', 'One Hot Encoder'],
"XGBoost Regressor": ["XGBoost Regressor", 'One Hot Encoder'],
'MultiLayer Perceptron Regressor': ['MultiLayer Perceptron Regressor', 'One Hot Encoder'],
'Final Estimator': ['Linear Regressor', "XGBoost Regressor", 'MultiLayer Perceptron Regressor', 'K Nearest Neighbors Regressor']
}
avm_pipeline = AVMPipeline(parameters={})
avm_pipeline.parameters
Fit the pipeline
avm_pipeline.fit(X_train, y_train)
Score the pipeline
avm_pipeline.score( X_test,
y_test,
objectives=['MAPE',
'MdAPE',
'ExpVariance',
'MaxError',
'MedianAE',
'MSE',
'MAE',
'R2',
'Root Mean Squared Error'])
Next Steps
Read more about bciAVM on our documentation page:
How does it relate to BCI Risk Modeling?
Technical & financial support provided by CCG Analytics
Metadata
Release files for bciavm 1.21.28.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bciavm-1.21.28.3.tar.gz | 19.0 MB | Without provenance | Details for bciavm-1.21.28.3.tar.gz |
Release files / bciavm-1.21.28.3.tar.gz
| Download URL | bciavm-1.21.28.3.tar.gz |
|---|---|
| Size | 19.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f94f8c12e2719d0153329daabbb6abb25085427a27c04af2c5e18f86c792ab2f
|
|
BLAKE2b-256 checksum How to use checksums |
f13892bac52e77904a0245f5589f215e8910d3b2b6e9fece935b48297fec8e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for bciavm 1.21.28.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.