Skip to content

Instantly share code, notes, and snippets.

View igorbrigadir's full-sized avatar

Igor Brigadir igorbrigadir

View GitHub Profile
@igorbrigadir
igorbrigadir / andrewwk.mp4
Last active September 2, 2022 21:37
Failed to upload SRT File on Twitter
This file has been truncated, but you can view the full file.
@igorbrigadir
igorbrigadir / 0_speech_ua_original.txt
Created August 26, 2022 15:36
Ukrainian Independence Speech Translation
Вільний народе незалежної України!
І цим усе сказано.
Всього чотири слова, але як багато стоїть за ними сьогодні.
На 182-й день повномасштабної війни.
Скільки в цих словах символів і сенсів, подвигів і втрат, радості й болю.
А головне – скільки в них правди.
Нашої правди.
Правди про наше сьогодення, з якою неможливо сперечатися, бо неможливо не бачити й не визнавати.
Ми вільний народ незалежної України.
Після шести місяців, коли нас намагаються знищити, ми вільний народ незалежної України.
@igorbrigadir
igorbrigadir / 01_setup.sh
Last active April 17, 2022 00:55
Daily tweet counts for news accounts example
pip install --upgrade twarc twarc-csv
twarc2 configure
slave
pupal
agora
lynch
fibre
wench
@igorbrigadir
igorbrigadir / private_metrics.py
Created February 8, 2022 13:02
Simplified example of using oAuth1.0a
from requests_oauthlib import OAuth1Session
import os
import json
# In your terminal please set your environment variables by running the following lines of code.
# export 'CONSUMER_KEY'='<your_consumer_key>'
# export 'CONSUMER_SECRET'='<your_consumer_secret>'
# export 'ACCESS_TOKEN'='<your_access_token>'
# export 'ACCESS_TOKEN_SECRET'='<your_access_token_secret>'
@igorbrigadir
igorbrigadir / bitcoin.csv
Created November 18, 2021 15:15
Daily "bitcoin" counts output from `twarc2 counts --archive --start-time "2021-01-01" --end-time "2021-08-31" --granularity day "bitcoin" --csv bitcoin_counts.csv`
start end day_count
2021-07-31T00:00:00.000Z 2021-08-01T00:00:00.000Z 226389
2021-08-01T00:00:00.000Z 2021-08-02T00:00:00.000Z 222078
2021-08-02T00:00:00.000Z 2021-08-03T00:00:00.000Z 246498
2021-08-03T00:00:00.000Z 2021-08-04T00:00:00.000Z 244656
2021-08-04T00:00:00.000Z 2021-08-05T00:00:00.000Z 229473
2021-08-05T00:00:00.000Z 2021-08-06T00:00:00.000Z 245932
2021-08-06T00:00:00.000Z 2021-08-07T00:00:00.000Z 222452
2021-08-07T00:00:00.000Z 2021-08-08T00:00:00.000Z 204968
2021-08-08T00:00:00.000Z 2021-08-09T00:00:00.000Z 208344
{
"data": [
{
"text": "@kevharrison_ And here is our big dog Brody and two of the cats. They say happy birthday too! https://t.co/3Ce3m1b2NC",
"author_id": "930114936826712064",
"id": "1443571132708253710",
"conversation_id": "1443062146510860289",
"referenced_tweets": [
{
"type": "replied_to",
@igorbrigadir
igorbrigadir / 0_prompt.txt
Created August 27, 2021 14:01
GPT3 Engine davinci Response length 64 Temperature 0.7 Top P 1 Frequency penalty 0 Presence penalty 0
How I failed machine learning in medical imaging - shortcomings and recommendations
By Gaël Varoquaux, Veronika Cheplygina
Abstract:
Medical imaging is an important research field with many opportunities for improving patients' health. However, there are a number of challenges that are slowing down the progress of the field as a whole, such optimizing for publication. In this paper we reviewed several problems related to choosing datasets, methods, evaluation metrics, and publication strategies. With a review of literature and our own analysis, we show that at every step, potential biases can creep in. On a positive note, we also see that initiatives to counteract these problems are already being started. Finally we provide a broad range of recommendations on how to further these address problems in the future. For reproducibility, data and code for our analyses are available on https://github.com/GaelVaroquaux/ml_med_imaging_failures
Introduction:
@igorbrigadir
igorbrigadir / 0_prompt.txt
Created August 27, 2021 13:29
GPT3 Engine davinci Response length 64 Temperature 0.7 Top P 1 Frequency penalty 0 Presence penalty 0
The Values Encoded in Machine Learning Research
by Abeba Birhane, Pratyusha Kalluri, Dallas Card, William Agnew, Ravit Dotan, Michelle Bao
Abstract:
Machine learning (ML) currently exerts an outsized influence on the world, increasingly affecting communities and institutional practices. It is therefore critical that we question vague conceptions of the field as value-neutral or universally beneficial, and investigate what specific values the field is advancing. In this paper, we present a rigorous examination of the values of the field by quantitatively and qualitatively analyzing 100 highly cited ML papers published at premier ML conferences, ICML and NeurIPS. We annotate key features of papers which reveal their values: how they justify their choice of project, which aspects they uplift, their consideration of potential negative consequences, and their institutional affiliations and funding sources. We find that societal needs are typically very loosely connected to the choice of project, if mentioned a
@igorbrigadir
igorbrigadir / earlier_example.txt
Last active August 10, 2021 16:14
Copilot tweet json hallucinations
"id": "1377313827226783745", "created_at": "2021-04-01T15:54:26.000Z", "text": "RT @ArborRidge1: We have a Wednesday Golden Egg Winner!! Even the dogs enjoy hunting for our golden egg!! Who will be the lucky person today!! Hint- the staff is watching it closely from the office! @ArborRidgeAptHomes https://t.co/VpdUTEMCW3", "reply_settings": "everyone", "possibly_sensitive": false, "entities": {"urls": [{"start": 212, "end": 235, "url": "https://t.co/VpdUTEMCW3", "expanded_url": "https://www.instagram.com/p/CNIQwHSjoWT/?igshid=1b0vhmepuh4ps", "display_url": "instagram.com/p/CNIQwHSjoWT/\u2026", "images": [{"url": "https://pbs.twimg.com/news_img/1377313827226783745/5jH4O4jW?format=jpg&name=orig", "width": 1080, "height": 1080}, {"url": "https://pbs.twimg.com/news_img/1377313827226783745/5jH4O4jW?format=jpg&name=150x150", "width": 150, "height": 150}], "status": 200, "title": "Arbor Ridge on West Friendly on Instagram: \u201cWe have a Wednesday Golden Egg Winner!! Even the dogs enjoy hunting for our golden egg!!