This is a sample project for Financial Product Recommendation System
Use the package manager pip to install python dependencies.
pip3 install -r requirements.txt
If you want to get hold of the latest data set please visit WealthML
Before you begin, please update the configuration (./src/main/resources/application.yml)
nn:
file:
#This is the File for processing
input: /Users/xxx/Desktop/workspace/financial-product-recommendation-system/src/main/resources/CUST_INVESTMENT.csv
#This is the post process file
output: /Users/xxx/Desktop/workspace/financial-product-recommendation-system/output/data_reference.csv
#This is the check point object of the neural network (weight only)
checkpoint: /Users/xxx/Desktop/workspace/financial-product-recommendation-system/output/
#This is the complete model of the neural network
model: /Users/xxx/Desktop/workspace/financial-product-recommendation-system/output/recommendation_system_model.h5
Before you begin, please update the data visualisaton configuration (./visualisation.html)
If you are using default endpoint then you do not need to update this config
line 47: url = "http://localhost:5000/recommendation/data"
python3 ./src/main/python/rs_nn.py
python3 ./src/main/python/rs_api.py
http://127.0.0.1:5000/recommendation/user
{
"product_name": "U62300",
"3year_return": "11.37",
"standard_deviation": "20.12",
"dividend": "0.22",
"asset_class": "Equity Developed Market"
}
http://127.0.0.1:5000/recommendation/product
{
"user": "CUST00000134",
"age": 20,
"gender": "M",
"maritalStatus": "SINGLE",
"haveChild": "N",
"education": "SECONDARY"
}
http://localhost:5000/recommendation/data
http://localhost:5000/recommendation/data?user=CUST00000134
http://localhost:5000/recommendation/data?age=20
http://localhost:5000/recommendation/data?gender=M
http://localhost:5000/recommendation/data?marital_status=SINGLE
http://localhost:5000/recommendation/data?have_child=N
http://localhost:5000/recommendation/data?education=SECONDARY
http://localhost:5000/recommendation/data?product_name=U62300
http://localhost:5000/recommendation/data?3year_return=11.37
http://localhost:5000/recommendation/data?standard_deviation=20.12
http://localhost:5000/recommendation/data?dividend=0.22
http://localhost:5000/recommendation/data?asset_class=Equity Developed Market
http://localhost:5000/recommendation/data?age_category=18-38
http://localhost:5000/recommendation/data?user_index=131
http://localhost:5000/recommendation/data?age_index=1
http://localhost:5000/recommendation/data?gender_index=1
http://localhost:5000/recommendation/data?education_index=2
http://localhost:5000/recommendation/data?have_child_index=0
http://localhost:5000/recommendation/data?marital_status_index=2
http://localhost:5000/recommendation/data?product_index=3
http://localhost:5000/recommendation/data?asset_class_index=0