haugjo / pystreamfs

A Python package for feature selection on a simulated data stream
MIT License
11 stars 1 forks source link

Unable to plot the stats in FSDS #2

Open NiloferJabarali opened 1 year ago

NiloferJabarali commented 1 year ago

Greetings sir, I Have tried your FSDS streaming feature selection algorithm code using breast cancer dataset but it is showing error while plotting. please do the needfull to solve this error. dataset link: "https://www.kaggle.com/datasets/yasserh/breast-cancer-dataset"

code: p=pystreamfs.plot_stats(stats,feature_names, param,'Feature Selection on Data Streams (FSDS)','Decision Tree').show()

AttributeError Traceback (most recent call last)

in 1 # Plot statistics ----> 2 p=pystreamfs.plot_stats(stats,feature_names, param,'Feature Selection on Data Streams (FSDS)','Decision Tree').show() ~\anaconda3\lib\site-packages\pystreamfs\pystreamfs.py in plot_stats(stats, ftr_names, param, fs_algorithm, ml_model) 157 plot_data['y_ticks_ftr'] = range(0, len(plot_data['ftr_names'])) 158 --> 159 chart = plot(plot_data) 160 161 return chart ~\anaconda3\lib\site-packages\pystreamfs\plots.py in plot(data) 13 14 fig = plt.figure(figsize=(20, 25)) ---> 15 fig.canvas.set_window_title('pystreamfs') 16 plt.subplots_adjust(left=0.05, right=0.95, top=0.95, bottom=0.05) 17 gs1 = gridspec.GridSpec(6, 2) AttributeError: 'FigureCanvasQTAgg' object has no attribute 'set_window_title'
haugjo commented 1 year ago

Hi Nilofer,

pystreamfs is no longer actively maintained, so the error is most likely caused by the use of an outdated matplotlib component.

However you can find the FSDS model, along with extended capabilities for online learning and plotting, in the float package. I strongly recommend you use float for your experiments. If you insist on using pytreamfs, however, there is always the option to plot the results of an experiment run manually using a plotting library of your choice.

I will leave the issue open for future reference in case any user runs into a similar issue.

Best, Johannes

NiloferJabarali commented 1 year ago

Hi Johannes , Thank you for your reply. I have tried running the code on my colleague's laptop. Now it works fine.it seems like a hardware configuration problem for my system. I will continue expecting your work to be uploaded to github. my best wishes. Thank you.

Regards A. Nilofer

On Fri, Feb 3, 2023 at 3:02 AM Johannes Haug @.***> wrote:

Hi Nilofer,

Pystreamfs is no longer actively maintained, so the error is most likely caused by the use of an outdated matplotlib component.

However you can find the FSDS model, along with extended capabilities for online learning and plotting, in the float https://github.com/haugjo/float package. I strongly recommend you use float for your experiments. If you insist on using Pytreamfs, however, there is always the option to plot the results of an experiment run manually using a plotting library of your choice.

I will leave the issue open for future reference in case any user runs into a similar issue.

Best, Johannes

— Reply to this email directly, view it on GitHub https://github.com/haugjo/pystreamfs/issues/2#issuecomment-1414401087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNEFCGPIC3VWJN6K6AHOILWVQRVHANCNFSM6AAAAAAUNJUUXU . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards A. Nilofer Research Scholar Department of Computer Applications Institute of Distance Education University of Madras