In Pycaret Anomaly module we are able to plot **tsne** plots in jupyter notebook, but in case production code I also need to show same tsne plots in frontend of website. I think this feature available in Streamlit, but I am using FastAPI framework. Is there any way to get these plots please let me know. Thanks
@revanks You can use the save parameter to save the image and then load it whereever you want. If you are using streamlit as front-end, easier way is to set display_format='streamlit'.
pycaret version checks
[X] I have checked that this issue has not already been reported here.
[X] I have confirmed this bug exists on the latest version of pycaret.
[X] I have confirmed this bug exists on the develop branch of pycaret (pip install -U git+https://github.com/pycaret/pycaret.git@develop).
Issue Description
In Pycaret Anomaly module we are able to plot **tsne
** plots in jupyter notebook, but in case production code I also need to show same tsne plots in frontend of website. I think this feature available in Streamlit, but I am using FastAPI framework. Is there any way to get these plots please let me know. Thanksfrom pycaret.datasets import get_data anomaly = get_data('anomaly') from pycaret.anomaly import * exp_name = setup(data = anomaly) knn = create_model('knn') plot_model(knn, plot = 'tsne')
Reproducible Example
Expected Behavior
from pycaret.datasets import get_data anomaly = get_data('anomaly') from pycaret.anomaly import * exp_name = setup(data = anomaly) knn = create_model('knn') plot_model(knn, plot = 'tsne')
Actual Results
Installed Versions