I also want Intersections of Positive Modality, Intersections of Neutral based on this…
Jump to turn (10)
- 1I also want Intersections of Positive Modality, Intersections of Neutral based o
- 2que fais ce code : import matplotlib.pyplot as plt from matplotlibvenn import ve
- 3explain this line : venn2([analysisset, vaderanalysisset], setcolors=("red", "gr
- 4the set function just gives me the modalities, but I want the exact set for the
- 5how can i transform my list to a set
- 6no, it is like i just want to get the same, think like we are changing [ to }
- 7write the code which convert a list to a set by keep the same number of values,
- 8'OrderedDict' is not defined
- 9import matplotlib.pyplot as plt from matplotlibvenn import venn2, venn2circles c
- 10you used set(), but this just gives the set of unique categories for each featur
- User
I also want Intersections of Positive Modality, Intersections of Neutral based on this code :
import matplotlib.pyplot as plt from matplotlib_venn import venn2, venn2_circles
create three sets based on your categorical features
analysis_set = set(df_english_copy[“Analysis”]) vader_analysis_set = set(df_english_copy[“Vader_Analysis”]) swn_analysis_set = set(df_english_copy[“SWN_analysis”])
create venn2 plots for all possible pairs of features
fig, axs = plt.subplots(1, 3, figsize=(12, 4)) venn2([analysis_set, vader_analysis_set], set_colors=(“red”, “green”), set_labels=(“Analysis”, “Vader Analysis”), ax=axs[0]) venn2([analysis_set, swn_analysis_set], set_colors=(“red”, “blue”), set_labels=(“Analysis”, “SWN Analysis”), ax=axs[1]) venn2([vader_analysis_set, swn_analysis_set], set_colors=(“green”, “blue”), set_labels=(“Vader Analysis”, “SWN Analysis”), ax=axs[2]) axs[0].set_title(“Analysis vs. Vader Analysis”) axs[1].set_title(“Analysis vs. SWN Analysis”) axs[2].set_title(“Vader Analysis vs. SWN Analysis”)
add circle labels to each venn2 plot
venn2_circles([analysis_set, vader_analysis_set], ax=axs[0], linestyle=“dotted”) venn2_circles([analysis_set, swn_analysis_set], ax=axs[1], linestyle=“dotted”) venn2_circles([vader_analysis_set, swn_analysis_set], ax=axs[2], linestyle=“dotted”)