INNER CODE UNIT · Python

transform_preds

featurestoreorg/serverless-ml-course · src/04-module/cc-fraud-streamlit-ui.py:75

def transform_preds(predictions):
    return ['Fraud' if pred == 1 else 'Not Fraud' for pred in predictions]    

progress_bar = st.sidebar.header('⚙️ Working Progress')
progress_bar = st.sidebar.progress(0)
st.title('🆘 Fraud transactions detection 🆘')

st.write(36 * "-")
print_fancy_header('\n📡 Connecting to Hopsworks Feature Store...')

st.write(36 * "-")
print_fancy_header('\n🤖 Connecting to Model Registry on Hopsworks...')
model = get_model(project)
st.write(model)
st.write("✅ Connected!")

progress_bar.progress(40)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…