Closed LLansman closed 3 years ago
Would you mind sending me some of your sample data? here is my email: nj.yuanli@gmail.com
Would you mind sending me some of your sample data? here is my email: nj.yuanli@gmail.com
I just sent you, thanks!
I tried to use m.significance(), but the x in the plot was too small for all 15 features. (they were all mixed up and the plot wasn't clear.) I tried to play with the values in m = som.map(xdim=10,ydim=5,train=1000,norm=False) (xdim, ydim, train) but then it all got stuck, and there was an "out of memory" error. now, it doesn't work at all and I get this weird error I never got before: "UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure."
Hi,
Here is the possible solution for you:
rename all the columns, so make them shorter, then they can be displayed as follow:
here is the code to rename to columns:
df = df.rename(columns={'Flight Distance':'FD', 'Inflight wifi service':'IWS', 'Ease of Online booking':'EOB', 'Food and drink':'FAD', 'Online boarding':'OB', 'Seat comfort':'SC', 'Inflight entertainment':'IE', 'On-board service':'OBS', 'Leg room service':'LRS', 'Baggage handling':'BH', 'Checkin service':'CS', 'Inflight service':'IS', 'Cleanliness':'CLE', 'satisfaction':'SA'})
Here is the result after renaming the columns and removing the age column.
[image: 1.png] Here is the result after removing the "flight distance" column and age column. [image: 2.png]
On Thu, Jun 10, 2021 at 3:01 PM LLansman @.***> wrote:
[image: Untitled] https://user-images.githubusercontent.com/58682786/121582145-57347600-ca37-11eb-8eb3-297a1ffd7b57.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/njali2001/popsom/issues/6#issuecomment-858920686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDQAUMT3ZGHVI52K6D6ZSTTSEDY7ANCNFSM46OSUXUQ .
To display the columns properly, you'd better rename the columns to shorter names. Here is the result after renaming them.
Thanks !!!
בתאריך יום א׳, 13 ביוני 2021, 21:03, מאת Li Yuan @.***
:
To display the columns properly, you'd better rename the columns to shorter names. Here is the result after renaming them. [image: 2] https://user-images.githubusercontent.com/8847441/121817542-09df2100-cc50-11eb-9cfd-09c0c04aea44.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/njali2001/popsom/issues/6#issuecomment-860249029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7W3IVH2NVW4CGWLIZDPNTTSTXGBANCNFSM46OSUXUQ .
but can you please tell me why you removed "age" column?
בתאריך יום ב׳, 14 ביוני 2021 ב-7:38 מאת I hope you dance... < @.***>:
Thanks !!!
בתאריך יום א׳, 13 ביוני 2021, 21:03, מאת Li Yuan < @.***>:
To display the columns properly, you'd better rename the columns to shorter names. Here is the result after renaming them. [image: 2] https://user-images.githubusercontent.com/8847441/121817542-09df2100-cc50-11eb-9cfd-09c0c04aea44.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/njali2001/popsom/issues/6#issuecomment-860249029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7W3IVH2NVW4CGWLIZDPNTTSTXGBANCNFSM46OSUXUQ .
but can you please tell me why you removed "age" column? בתאריך יום ב׳, 14 ביוני 2021 ב-7:38 מאת I hope you dance... < @.>: … Thanks !!! בתאריך יום א׳, 13 ביוני 2021, 21:03, מאת Li Yuan < @.>: > To display the columns properly, you'd better rename the columns to > shorter names. > Here is the result after renaming them. > [image: 2] > https://user-images.githubusercontent.com/8847441/121817542-09df2100-cc50-11eb-9cfd-09c0c04aea44.png > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#6 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AN7W3IVH2NVW4CGWLIZDPNTTSTXGBANCNFSM46OSUXUQ > . >
No special reason to do so, just making other features more significant in the plot. You can put the "Age" column back for sure.
OK thanks
בתאריך יום ב׳, 14 ביוני 2021, 17:47, מאת Li Yuan @.***
:
but can you please tell me why you removed "age" column? בתאריך יום ב׳, 14 ביוני 2021 ב-7:38 מאת I hope you dance... < @.
>: … <#m-6304377372609846670> Thanks !!! בתאריך יום א׳, 13 ביוני 2021, 21:03, מאת Li Yuan < @.>: > To display the columns properly, you'd better rename the columns to > shorter names. > Here is the result after renaming them. > [image: 2] > https://user-images.githubusercontent.com/8847441/121817542-09df2100-cc50-11eb-9cfd-09c0c04aea44.png
— > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#6 (comment) https://github.com/njali2001/popsom/issues/6#issuecomment-860249029>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AN7W3IVH2NVW4CGWLIZDPNTTSTXGBANCNFSM46OSUXUQ . >
No special reason to do so, just making other features more significant in the plot. You can put the "Age" column back for sure.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/njali2001/popsom/issues/6#issuecomment-860744451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7W3IQMZ6SMSCEFHMTGCFLTSYI7NANCNFSM46OSUXUQ .
hi, how can I use m.significance() but with a bigger x line? I have 15 features so the plot is not clear.