Winter solstice! The days now get longer
Commencement! That was fun. Nice lunch after, too
SBIRs
- Working on paper
Winter solstice! The days now get longer
Commencement! That was fun. Nice lunch after, too
SBIRs
SBIRs
SBIRs

Also got another nice ride in:

Tasks
SBIRs
# Repulsion function. `self' and `n2` should be nodes. This will
# adjust the dx and dy values of `self` `n2`. If you want objects with more mass to be given
# 'more room', set common_mass to zero
def linRepulsion(self, n2:'ForceNode', common_mass:float = 1.0):
xDist = self.x - n2.x
yDist = self.y - n2.y
distance2 = xDist * xDist + yDist * yDist # Distance squared
if distance2 > 0:
if common_mass == 0:
common_mass = self.mass
factor = self.pp.repulsion_scalar * common_mass / distance2
self.dx += xDist * factor
self.dy += yDist * factor
def adjust_mass_size(self, mass:float = 0, size:float = 0, scalar:float=0 ):
#set up the scalar regardless
if mass == 0 and scalar == 0:
print("WARNING! CanvasFrame.adjust_node(): mass == 0 and scalar == 0")
return
if scalar == 0 and size != 0:
scalar = size / self.size
if mass != 0:
self.mass = mass
else:
self.mass *= scalar
# now just use the scalar. The reason we do this is that the call to self.canvas.coords() returns
# a SCALED value of coordinates. If we set them directly from size, they will be too big if
# zoomed out and too small if zoomed in
self.size *= scalar
x0, y0, x1, y1 = self.cd.canvas.coords(self.id)
old_x_size = abs(x1 - x0)
old_y_size = abs(y1 - y0)
x_size = old_x_size * scalar
y_size = old_y_size * scalar
x_offset = (x_size - old_x_size)/2.0
y_offset = (y_size - old_y_size)/2.0
self.cd.canvas.coords(self.id, x0-x_offset, y0-y_offset, x1+x_offset, y1+y_offset)
Go for a longer ride today:

Hasbro is making emotional support robots
SBIRs
GPT Agents
JuryRoom
SBIRs

if weight < 1:
weight = 1.0
else:
weight = math.log10(weight)
radius = radius * weight
fn = cf.create_ForceNode(self.name, radius, color, x=xpos, y=ypos)
fn.mass = weight
self.force_node = fn
GPT Agents
The emergence of collective knowledge and cumulative culture in animals, humans and machines
SBIRs
GPT Agents
Birds Aren’t Real, or Are They? Inside a Gen Z Conspiracy Theory.
SBIRs
So in the Before Times, I had a ticket from IAD to BCN on Iberia. Then the pandemic happened and I got a voucher. Now, the closest airport that has flights to BCN that the vouchers work on is JFK. Trying to figure out the best way to get there.
SBIRs
Book
SBIRs
GPT Agents
JuryRoom
SBIRs
def main():
print("CanvasFrame")
window = tk.Tk()
window.title("CanvasFrame testbed")
wrapper = tk.Frame(window)
wrapper.pack()
dp = ConsoleDprint()
canvas = CanvasFrame(wrapper, 0, "Graph", dp, width=450, height=400)
dp.create_tk_console(wrapper, 1, char_width=50)
canvas.setup(debug=True)
window.mainloop()

canvas.canvasx(cf.test_node.x), canvas.canvasy(cf.test_node.y)
SBIRs
GPT Agents
aitextgen is a Python package that leverages PyTorch, Hugging Face Transformers and pytorch-lightning with specific optimizations for text generation using GPT-2, plus many added features. It is the successor to textgenrnn and gpt-2-simple, taking the best of both packages (Github repo)
I think this might be a way to train a GPT model from scratch that is trained in reverse. Which means, given an outcome, it should be possible to create a cluster of text options that would construct that string on a regular GPT. And it should be possible to verify by using that phrase on a forward GPT to evaluate the likelihood that the originating/target text gets generated.
Doctor!
SBIRs
SBIRs
You must be logged in to post a comment.