- What will be solved?
- What will be achieved?
- Why is this research important?
- Scientific
- Application
- Society
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix | |
def plot_confusion_matrix(y_preds, y_true, labels): | |
cm = confusion_matrix(y_true, y_preds) | |
fig, ax = plt.subplots(figsize=(6, 6)) | |
disp = ConfusionMatrixDisplay(confusion_matrix=cm, display_labels=labels) | |
disp.plot(cmap="Blues", values_format=".2f", ax=ax, colorbar=False) | |
plt.title("Normalized confusion matrix") | |
plt.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download button | |
st.download_button( | |
label="Download sample file here", | |
data=sample_file, | |
file_name='sample_data.csv', | |
mime='text/csv', | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zipfile import ZipFile | |
for annotator, subset in annotation_df.groupby('annotator'): | |
with ZipFile(f'{annotator}.zip', 'w') as z: | |
for path in subset['image_path']: | |
z.write(path, os.path.basename(path)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install git+https://github.com/nexxt-intelligence/DeepMoji@tf-keras | |
pip install wordcloud matplotlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emoji_cloud = EmojiCloud(font_path='./Symbola.ttf', color='yellow') | |
emoji_cloud.generate(emojis) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from wordcloud import WordCloud | |
from collections import Counter | |
import matplotlib.pyplot as plt | |
class EmojiCloud: | |
def __init__(self, | |
font_path='Symbola.ttf', | |
color='yellow'): | |
self.font_path = font_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from wordcloud import WordCloud | |
from collections import Counter | |
import matplotlib.pyplot as plt | |
class EmojiCloud: | |
def __init__(self, | |
font_path='Symbola.ttf', | |
color='yellow'): | |
self.font_path = font_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from deepmoji import DeepMoji | |
# Instantiate the Emoji Model | |
emoji_model = DeepMoji() | |
# Read a file containing user opinions | |
df = pd.read_csv('https://bit.ly/2VbfNiM') | |
# Predict the emojis for the open-ended text |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title,label | |
"15 Highly Important Questions About Adulthood, Answered By Michael Ian Black",1 | |
250 Nuns Just Cycled All The Way From Kathmandu To New Delhi,1 | |
"Australian comedians ""could have been shot"" during APEC prank",0 | |
Lycos launches screensaver to increase spammers' bills,0 | |
Fußball-Bundesliga 2008–09: Goalkeeper Butt signs with Bayern Munich,0 | |
"In Afghanistan, Soldiers Bridge 2 Stages of War",0 | |
"After Fleeing North Korea, an Artist Parodies Its Propaganda",0 | |
Lessons (or Not) When a Start-Up Misses the Mark,0 |
NewerOlder