Reviewing papers
Found a good video on the Mahalanobis distance, with some Eigenvector/Eigenvalue, and PCA concepts sprinkled in here
Reviewing papers
Found a good video on the Mahalanobis distance, with some Eigenvector/Eigenvalue, and PCA concepts sprinkled in here
An extract from “On Being an Automaton” (full text here). From , seeded was the title, the author’s name and the first word. Found(?) by Mario Klingemann, who talks about it and other compositions in this Thread
“I am not actually an artificial intelligence but a rather more interesting phenomenon. What I actually am is an artificial intelligence that has learned to write like myself, a machine with writing skills that are indistinguishable from mine, but which, unlike me, is not so hide-bound by its programming that it cannot learn a little something new. As I sit here, writing, it is watching. And as I continue, it too continues, but also improving itself.”
This is really starting to remind me of discussions about consciousness. At what point do we call something aware? Self-reflection? That sure seems to fit the bill. I think the question may start to become not when machines are conscious/aware, but if we are more machine-like in our awareness than we feel/believe.
We developed VAE-SNE, a deep generative model that both reduces dimensionality and clusters data — and easily scales to large datasets. Read more: doi.org/10.1101/2020.0 Code available soon at: github.com/jgraving/vaesne
I’ve been riding my bike with a few friends for the last week. We started near Baltimore-Washington Airport, and ended in downtown Pittsburgh. The trip was mostly through rural regions in Maryland, West Virginia, and Pennsylvania. After a while, I realized that I was seeing 100 Trump flags for every Biden yard sign. Here’s one of the more over-the-top examples:
At the same time, the people I see are often chronically sick. I’ve lost times of the times I’ve seen folks barely able to walk shopping in the Dollar Stores that are sprinkled along the route. Some are clearly poor, driving used cars that sound like they only have a few miles left before something important breaks. Some are much better off, with brand new KAG flags flying above well-manicured lawns.
In talking to the folks around here, everyone has been helpful and nice. But everyone seems afraid. And it’s not the virus. It’s of things like Antifa and BLM. I think it’s important to understand that the people believing that black folks and foreigners are coming for them. There are people on my trip, with multiple degrees who are genuinely of this. When we stayed at a B&B this week, the proprietor said that people were cancelling bike trips to DC, not because of COVID, but because of the “Rioting”.
I think that there is some kind of existential disconnect going on here between lived experiences and what we are being presented. Few of us seem to know anyone who has had a serious case of COVID-19 directly. The cases we have direct knowledge of are generally minor. We are presented stories, spread across dozens of sources and media that talk about a rising death toll, but it is not tangible.
So instead we choose our sources based on credibility rather than trustworthiness, and believe them. Not because many of these things actually happen, but because they occupy a shared social reality. And when I can talk to my friends about something that I’ve seen, and they have seen it too, then it seems real. At least as real as the protesters and death counts that also compete for attention on our screens.
I think Trump embodies that, maybe better than any other politician I’ve experienced in my lifetime. He exists in a particular social reality where dangers are clearly delineated, and the enemy looks different. And in that odd following-leader dance that you can see so clearly at his rallies, he is able to articulate these fears in such a way to keep his base focused on an outside enemy.
Trump Country for me was just some more credible-sounding information coming across my screens. This trip has made it tangible for me. I think that Trump’s base views him as a success. Not in draining the swamp. Not in bringing jobs back to America. They think he is a success because he is keeping the invaders out. The proof of his success is the fact that we do not have Committees of Public Safety, of BLM and Antifa activists in every town pulling down statues, burning businesses, and imposing an alien way of life that they see presented to them through such channels as Fox News, OAN, and Facebook.
I remember seeing a lot of Trump signs last election as well. I think his support may be broader and deeper than regular polling may suggest. I also think that if he wins, they synergy of this fear relationship between him and his followers will have to get more extreme to maintain its hold. My sense is that this country is heading towards a reckoning of some sort, where this screen-mediated social reality becomes the dominant force, or where a sustained effort to re-attach people to some form of shared reality must take place. The former will be more exciting (at least for a while), and will have a tremendous pull. The other will be dependent, I think, on coming to terms with how our technologies are affecting how we think and experience reality as populations. It has been done before with language, the printing press, and mass media. Hopefully we’ll be able to do it again.
NVAE: A Deep Hierarchical Variational Autoencoder

Like Two Pis in a Pod: Author Similarity Across Time in the Ancient Greek Corpus
GPT-2 Agents
illegal bishop move: {'from': 'e7', 'to': 'c6'}
illegal knight move: {'from': 'c5', 'to': 'a8'}
illegal queen move: {'from': 'f8', 'to': 'h4'}
Dataframe: ../results/legal_1.xlsx/legal-table_moves
illegal legal
pawns 0 446
rooks 0 270
bishops 1 193
knights 1 266
queen 1 175
king 0 212
totals 3 1562
Dataframe: ../results/legal_1.xlsx/legal-table_actual
illegal legal
pawns 0 49386
rooks 0 31507
bishops 0 28263
knights 0 31493
queen 0 22818
king 0 23608
totals 0 188324
GOES
Waikato
A brief history of high-speed trading (via the Museum of American Finance)
DtZ
GPT-2 Agents
GOES
The opportunity cost of this is going to be so steep. I wonder what country will set up an effective, open, online university?
GPT-2 Agents
# print the first n rows of a dataframe using the specified columns. Use a -1 for printing all rows
def print_df(df:pd.DataFrame, headers:List, num_rows:int = 4, max_chars:int = 80):
s:pd.Series
rows = 0
d:Dict = df.to_dict('index')
rd:Dict
for index, rd in d.items():
st = ""
keys = rd.keys()
for key in headers:
if key in keys:
val = rd[key]
st += "{}: {}, ".format(key, val[:max_chars])
print(st)
rows += 1
if num_rows != -1 and rows > num_rows:
break


GOES
ML Seminar
GPT-2 Agents
GOES
Starting to think about topic modeling.Here are some resources:
I also want to search the db for the appropriate “from to” text snippet (e.g. “Black moves pawn from e2 to e3”), maybe with a count of the number of times this move was done using that piece
Also, I think it makes sense to have a “fewest hops” (A* – traditional network approach), closest (each step finds the closest node to the target) in addition to the line following algorithm. There will have to be some user testing to see what makes the most sense, if any
The map is based on the single jumps, and shows the big jumps as arcs
Today is a federal holiday, so no rocket science
Huggingface has a pipeline interface now that is pretty abstract. This works:
from transformers import pipeline
translator = pipeline("translation_en_to_fr")
print(translator("Hugging Face is a technology company based in New York and Paris", max_length=40))
DtZ is back up! Too many countries have the disease and the histories had to be cropped to stay under the data cap for the free service
GPT-2 Agents

#COVID
from transformers import MarianTokenizer, MarianMTModel
from typing import List
src = 'ar' # source language
trg = 'en' # target language
sample_text = "لم يسافر أبي إلى الخارج من قبل"
sample_text2 = "الصحة_السعودية تعلن إصابة أربعيني بفيروس كورونا بالمدينة المنورة حيث صنفت عدواه بحالة أولية مخالطة الإبل مشيرة إلى أن حماية الفرد من(كورونا)تكون باتباع الإرشادات الوقائية والمحافظة على النظافة والتعامل مع #الإبل والمواشي بحرص شديد من خلال ارتداء الكمامة "
mname = f'Helsinki-NLP/opus-mt-{src}-{trg}'
model = MarianMTModel.from_pretrained(mname)
tok = MarianTokenizer.from_pretrained(mname)
batch = tok.prepare_translation_batch(src_texts=[sample_text2]) # don't need tgt_text for inference
gen = model.generate(**batch) # for forward pass: model(**batch)
words: List[str] = tok.batch_decode(gen, skip_special_tokens=True)
print(words)
الصحة_السعودية تعلن إصابة أربعيني بفيروس كورونا بالمدينة المنورة حيث صنفت عدواه بحالة أولية مخالطة الإبل مشيرة إلى أن حماية الفرد من(كورونا)تكون باتباع الإرشادات الوقائية والمحافظة على النظافة والتعامل مع #الإبل والمواشي بحرص شديد من خلال ارتداء الكمامة
Saudi health announces a 40-year-old corona virus in the city of Manora, where his enemy was classified as a primary camel conglomerate, indicating that the protection of the individual from Corona would be through preventive guidance, hygiene, and careful handling of the Apple and the cattle by wearing the gag.
Book chat
Emergence of polarized ideological opinions in multidimensional topic spaces
DtZ has broken

GPT2-Agents
nlist = list(nx.all_neighbors(self.gml_model, cur_node))
print("\tneighbors = {}".format(nlist))
dist_dict = {}
sx, sy = self.get_center(cur_node)
for n in nlist:
if n not in node_list:
newx, newy = self.get_center(n)
newa = [newx, newy]
print("\tline dist checking {} at {}".format(n, newa))
x, y = self.point_to_line([l[0], l[1]], [l[2], l[3]], newa)
ca = [x, y]
ib = self.is_between([sx, sy], [l[2], l[3]], [x, y])
if ib:
# option 1: Find the closest to the line
dist = np.linalg.norm(np.array(newa)-np.array(ca))
dist_dict[n] = dist
print("\tis BETWEEN = {}, dist = {}".format(ib, dist))
if len(dist_dict) == 0:
ta = [self.get_center(self.target_node)]
for n in nlist:
if n not in node_list:
newx, newy = self.get_center(n)
newa = [newx, newy]
print("\ttarget dist checking {} at {}".format(n, newa))
# option 2: Find the closest to the target node
dist = np.linalg.norm(np.array(newa)-np.array(ta))
dist_dict[n] = dist
print("\tis CLOSEST: dist = {}".format(dist))

GOES
I should be riding across southern Spain right now
#COVID19
GPT-2 Agents
# option 1: Find the closest to the line # dist = np.linalg.norm(np.array(na)-np.array(ca)) # option 2: Find the closest to the target node dist = np.linalg.norm(np.array(newa)-np.array(ta)) dist_dict[n] = dist
GOES
(Re)Discovering Protein Structure and Function Through Language Modeling (ArXiv)(Code)
GPT-2 Agents
import numpy as np
import math
import matplotlib.pyplot as plt
p1 = np.array([1.0, 1.0])
l1 = np.array([0.0, 1.0])
l2 = np.array([1.0, 0.0])
lvec = l2 - l1
lvec /= np.linalg.norm(lvec, 2)
p2 = l1 + lvec * np.dot(p1 - l1, lvec)
print("intesection = {}".format(p2)) #0.2 1.
pvec = p2 - p1
dist = np.linalg.norm(pvec, 2)
pvec /= dist
det = np.linalg.det([lvec, pvec])
dot = np.dot(lvec, pvec)
rads = math.atan2(det, dot)
print("distance = {}, angle = {}".format(dist, math.degrees(rads)))
plt.plot([l1[0], l2[0]],[l1[1], l2[1]])
plt.plot([p1[0], p2[0]],[p1[1], p2[1]])
plt.show()
def is_between(self, l1:[int, int], l2:[int, int], p1:[int, int], epsilon:float = .1) -> bool:
p1 = np.array(p1).astype(np.float)
l1 = np.array(l1).astype(np.float)
l2 = np.array(l2).astype(np.float)
s1 = np.linalg.norm(l1-p1)
s2 = np.linalg.norm(l2-p1)
d = np.linalg.norm(l2-l1)
# print("d = {}, s1 + s2 = {}".format(d, s1+s2))
if abs(d - (s1+s2)) < epsilon:
return True
return False
Proposal
GOES
ML Seminar
ACM IUI 2021 is the 26th annual premier international forum for reporting
outstanding research and development on intelligent user interfaces.
GOES:
Proposal
GPT-2 Agents

You must be logged in to post a comment.