System.Data.Entity.DynamicProxies.Category_60405CDE4C349BFE4154B30D8200A8604B9297746E1F0B11F1D3DB2298A09CB5

Artificial Intelligence

A bit of a hobby of mine is Artificial Intelligence. I have studied this for some time now, and I have a half Reasonable grasp on much of this area.

The Transformer Model Architecture, from the Paper: "Attention is all you need" ( Circa 2017 ) is a Ground Breaking Leap Forward in the AI Arena! Of course, this is the origins behind Chat GPT ( Generative Pre-Trained Transformer. )

I use CNTK, because its a C# Compatible AI Architecture and its what I know, even if it is somewhat old and out of date. I hope Microsoft does bring back Support, because I cant stand ML.NET, its just awful!

March of 2016 I completed an Stanford Machine Learning Qualification, giving me a small head start in the AI Field, but it took me some time to develop the necessary skill to make AI useful in everyday life!

Have I built a Transformer, yes, here is a small one, a baby, a Single Layer GPT:

        public async void GPTAsync(int Heads = 8)
        {

            // Load Vocabulary:
            if (await LoadVocabularyAsync())
            {

                // The Vocab Size:
                int VocabSize = WordToIndex.Count;

                // Mask Variables:
                float Multiplier = 1.0f;
                float TrilMask = float.NegativeInfinity;

                // The Input Variables:
                CNTK.Variable DecoderInputs = Variable.InputVariable(new int[] { DecoderRowDimension }, DataType.Float, ModelInputName);

                // Init a new Mask:
                CNTK.Constant Mask = Build.Mask(DecoderRowDimension, Multiplier, TrilMask);

                // The Encoder / Decoder Blocks: Nx times
                CNTK.Function LinearDecoderBlock = new LinearDecoderBlock(DecoderInputs, Mask, Heads, DenseLayerDimension, DecoderRowDimension).Output;

                // Send through A Fully Connected Feed-Forward Network.
                Function DenseLayer1 = Layers.DenseLayer(LinearDecoderBlock, DenseLayerDimension, Activation.ReLU, "InputsX");
                Function DenseLayer2 = Layers.DenseLayer(DenseLayer1, DenseLayerDimension, Activation.ReLU, "LayerOne");
                Function DenseLayer3 = Layers.DenseLayer(DenseLayer2, VocabSize, Activation.ReLU, "OutputsY");

                // Adding Dropout and run a Softmax to get Output Probabilities:
                Model = CNTK.CNTKLib.Dropout(CNTKLib.Softmax(DenseLayer3), 0.1);
            }
        }

 

This small prototype shows how simple a basic Model can look, but there is more complexity under the hood!

Being able to apply Artificial Intelligence to some medial tasks does help in a lot of areas, especially when one person has no time to get many things done!

 

 

 

We're Light Years Ahead!
Members Online:

No one online at the moment


What is a Scalar:

In physics, scalars are physical quantities that are unaffected by changes to a vector space basis. Scalars are often accompanied by units of measurement, as in "10 cm". Examples of scalar quantities are mass, distance, charge, volume, time, speed, and the magnitude of physical vectors in general.

You need to forget the Non-Sense that some spout with out knowing the actual Definition of the word Scalar! Some people talk absolute Bull Sh*t!

The pressure P in the formula P = pgh, pgh is a scalar that tells you the amount of this squashing force per unit area in a fluid.

A Scalar, having both direction and magnitude, can be anything! The Magnetic Field, a Charge moving, yet some Numb Nuts think it means Magic Science!

Message from God:

Hello my children. This is Yahweh, the one true Lord. You have found creation's secret. Now share it peacefully with the world.

Ref: Message from God written inside the Human Genome

God be in my head, and in my thinking.

God be in my eyes, and in my looking.

God be in my mouth, and in my speaking.

Oh, God be in my heart, and in my understanding.

Your Support:

More than anything else, your contributions to this forum are most important! We are trying to actively get all visitors involved, but we do only have a few main contributors, which are very much appreciated! If you would like to see more pages with more detailed experiments and answers, perhaps a contribution of another type maybe possible:

PayPal De-Platformed me!

They REFUSE to tell me why!

We now use Wise!

Donate
Use E-Mail: Chris at aboveunity.com

The content I am sharing is not only unique, but is changing the world as we know it! Please Support Us!

Thank You So Much!

Weeks High Earners:
The great Nikola Tesla:

Ere many generations pass, our machinery will be driven by a power obtainable at any point of the universe. This idea is not novel. Men have been led to it long ago by instinct or reason. It has been expressed in many ways, and in many places, in the history of old and new. We find it in the delightful myth of Antheus, who drives power from the earth; we find it among the subtle speculations of one of your splendid mathematicians, and in many hints and statements of thinkers of the present time. Throughout space there is energy. Is this energy static or kinetic? If static, our hopes are in vain; if kinetic - and this we know it is for certain - then it is a mere question of time when men will succeed in attaching their machinery to the very wheelwork of nature.

Experiments With Alternate Currents Of High Potential And High Frequency (February 1892).

Close