Showing posts with label ngram. Show all posts
Showing posts with label ngram. Show all posts

Thursday, May 18, 2023

[Knowledge/Belief] NGram Poem

 1.


criterion of civilization. beatitudes disclaim all other formulae. Epicurus had planted the canonization of weakness. What concerns _me_ is above the necessary -- whether to carrot sticks on the verge of temptation for a new feudalism or upright judge draws this mask across eternity. 


Since sickness values the law, we charge a falsehood as unbearable _anguish_. I add punishment to reduce being to sickly gods. 


_What_ is called 

 occasionally _faith_ 

is among the antecedents of belief 

is taste.


2. 


a criterion for beatitudes is suffering. civilization disclaims all other formulae. the Stoics demanded this of us, making pain subjective. what concerns me is beyond mandatory -- compulsion drives 97% of what makes us human. the rest demands a plan. and as we tie ourselves to the land, a mask crosses our face, and we are pressed into place nested deep within. it feels eternal.


_What_ is called

occasionally _knowledge_

is among the precursors of delusion

is [hope/fear]


[----------------------------------------------]

Bias = The Antichrist by Friedrich Nieztche

Tuesday, April 25, 2023

The Laughter of the Capsule

Degenerated stone piers satisfy the slaver’s pressure

Enemies of voice snort in our memory


You are born to this 

Bubble of liquid mass

Disturbed enough to endure

Having a family 

and knowing 

the fate of your sons


Disorder cannot endure 

the goodness of intent

And breaks a spirit 

Near in half

With obligations


Old peak of new sorrows

Hear the frankness that blisters

Steal beams

composed by Jesuits

Who are homesick

For heaven


Our hearts can still melt

But anger here 

is where we dissolve

Our noon shadows

Useless under clouds


<-/\-><-/\-><-/\-><-/\-><-/\-><-/\-><-/\->


The Laughter of the Capsule bias = The Man Who Laughs + The King in Yellow

Monday, February 27, 2023

In lieu of death (poem)

 most rational people 

 accustomed to sleeping beneath the horizon 

 empathize with caution


 Starting on closure can barely matter

 how does this objective 

 keep losing every possible interpretation

 should it go on toward abstraction 

 Nothing 

 subsists without Negation


:!:!::!::!:!:!::!:!::!::!:!:!::!:!::!::!:!:!:

This is the first poem written with the N=G=R=A=M=S Generator. This is like shattering a bottle of champagne on a ship. It was made using my own NGRAM bias and using the selective generation method. 

Tuesday, January 31, 2023

Understanding the ngram

 Ngrams are complicated, especially for those without a formal understanding of computer data objects. I wanted to post about ngrams and why they're special, interesting, and for as simple as they are, so powerful.

How do we store data in a computer? We have variables for that. However, assigning one name to every variable makes it clunky to recall. For that reason, we want to organize the data into chunks. One of the very earliest and simplest data types is the linked list.

The linked list is a 1-dimensional line of variables connected to each other. The list doesn't actually have to "exist" as its own separate object. Each of the elements of the list point to other elements in the list. So, the first object points to the second object and the second object points to the third and back to the first object. So, all you need to start a list is a first object. 

I have a list:

  1. Hieronymus 
  2. Sofonisba
  3. Grant 
  4. Blastonymus
Instead of numbers, which you don't have, you have something like this:

Hieronymus-Sofonisba-Grant-Blastonymus

So, if we want to get to Blastonymus, we must first pass Hieronymus, Sofonisba, and Grant, taking three steps. We can also move back on the list by calling the pointers that link the objects to one another. The most important thing to understand here is that you can only move back or forth. That means that you're in a one-dimensional space or on a line. That's the most important thing. Imagine yourself as a little car driving down the street trying to get to your friend Blastonymus's house but you're currently hanging out with Hieronymus. You must now drive three houses down. Your entire universe is those four houses.

Binary trees

The garden of forking paths is your binary tree. Every time you make a choice, you're presented with another one until the space ends. The sense of organizing information like this is that it allows you to issue directions in either left- or right-hand turns. This space still makes sense to us. Even when we're presented with three or four choices. We can still move back and forth in a way that doesn't entirely mess with our sense of direction. Once we get to ngrams that will stop.

Ngrams

Linked lists are one-dimensional data objects. You can only go back and forth. Binary trees are two-dimensional data objects because they bifurcate and offer more paths. Ngrams are n-dimensional data objects and they cause problems.

Imagine that you're at Hieronymus's house and you go to Blastonymus's house. So, now you're there, but gosh, you forgot your important object. So, now you must go back. The road you took is not the same road you need to take back. In fact, that road is gone. Worse, there may be no way to get from Blastonymus' house to Hieronymus's house. 

Further, instead of one direction, you have an indefinite number of dimensions that are continually added as we accrue ngrams. While it's certainly possible you could find your way back, it's also possible that way does not exist. 

With a linked list or a binary tree, you can always work your way back. With ngrams, you can end up on an island in a universe with no exits. 

Demonstration

"The first dog demanded that the second dog be more of a dog."

This is our sentence. An ngram algorithm will take this sentence and return the following data:

  • The->first(1), second(1)
  • Dog->demanded(1), be(1), .(1)
  • First->dog(1)
  • Demanded->that(1)
  • ...
In this case, the data for the ngram "The" will produce the links "first" and "second". The numbers represent the weight, or how many times the two terms come in sequence. Once you go from "The" to "first", there's no way back to "The". The ground collapses behind you. But that's not the problem spatially.

Even if you could get back from "first" to "The" the same roads won't be awaiting you.

So, let's say we drive from Hieronymus' house to Sofonisba's house. Sofonisba's house could be connected to Hieronymus's house or hundreds even thousands of other houses that suddenly appear once we're at Sofonisba's. So, even if there's a link back to our house, it's one of the thousands of others that lead elsewhere.

The ngram behaves like a multi-dimensional spatial object akin to the Hypercube.

Tuesday, January 24, 2023

What is it like making art with ai? And also "God as Chance"

Playing God

To answer the first question, it's like evolution, and you get to be God. Now, for a skeptic, God is no more than chance, coincidence, and random happenstance, if we even accredit that much substance to him. For others, the random happenstance and the successes and failures of life are evidence of God's favor and disfavor. We need only read the Book of Job to understand the human connection between good and bad life events and God himself. 

Growing up in a Catholic household, we're taught that God speaks to us through our experiences. We see signs as a matter of spirituality and these signs communicate things to us. They communicate things from God. At base, the skeptical approach to this would be to say, this is a fiction created out of chance to control that which is beyond our power to control, or at least place hardship into a context we can live with.

Today, methods of divination rely alternatively on chance or time. Astrology relies on time. I Ching relies on chance. Tarot relies on chance. Catholics rely on signs and happenstance. 

For skeptics, we all have life experiences that taught us valuable life lessons. But we don't attribute them to the workings of a conscious benefactor. 

As a writer working with ngram poetry, and now an artist working with ngram images, we rely on the random number generator to provide us with unique images each time through. There is no way to generate a random number ex nihilo. Instead, mathematicians create a "twister" algorithm that mimics the distribution of a randomly generated set. This algorithm would produce the same content over and over but for the fact that it takes one variable as a seed. Two seeds that are the same would produce the same set of numbers over and over. So, it looks like we have the same problem, right? We still can't generate a random number!

There are two ways around this problem. The first is to ask the user for a seed. The second is to generate the seed using the computer's unique timestamp. So, let's travel back to God. God is chance, and chance is Time. At least for those of us who use computer algorithms to generate poetry and images. 

Evolution

Now, how do animals evolve? Well, evolution gives us a testable if unsatisfying answer. If you throw poop at the wall enough times, eventually, you'll end up with a Picasso. Since you don't want to show your friends your crappy paintings, you only show them the Picasso. "Wow," they said. "That's like Picasso." The only major difference between you and Picasso is that Picasso is a painter and sculptor and you work in a different medium. 

Evolution keeps Picassos and throws away the rest. So, every new template is based on a previous Picasso. This recursive element is what allows the poop-throwing process to occasionally stick. We're always basing our next Picasso on a previous Picasso. 

To play God, you must be willing to cull. In fact, culling will be your most important act. In nature, the environment determines which are fittest. Some may see an invisible hand at play, but you don't need an invisible hand to describe what's happening. You only need the unpleasant metaphor I provided above. The artist thus becomes the equivalent of nature, selecting the fittest Picassos from the bunch. The vast majority of this will come down to chance. If you're a rabbit crossing an open field when an eagle happens to be flying by, it's the inverse of an artist noticing a particularly poignant representation and then selecting that for his Instagram or creating a sequence of images to tell a story, or alternatively, unfit for reproduction.

As a writer, you don't get to invent a lot of new words. You might get one or two if you're lucky. Ultimately, we're used to this. This mode of representation doesn't even feel new to us. This is our game. 

No pixels touched in the creation of these images

Each of the images presented in the series on this blog is untouched by image editing software. They were 100% generated by AI. Each pixel was laid by the AI. There was no human intervention other than selection and providing input. 

So, my creative contribution to this is still just language.