Posts

Showing posts from September, 2024

Number identification using Multilayer Perceptrons

import tensorflow as tf from tensorflow.keras.datasets import mnist from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Flatten (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.reshape( 60000 , 784 ).astype( 'float32' ) / 255 x_test = x_test.reshape( 10000 , 784 ).astype( 'float32' ) / 255 y_train = tf.keras.utils.to_categorical(y_train, 10 ) y_test = tf.keras.utils.to_categorical(y_test, 10 ) model = Sequential() model.add(Dense( 128 , activation= 'relu' , input_shape=( 784 ,))) model.add(Dense( 64 , activation= 'relu' )) model.add(Dense( 10 , activation= 'softmax' )) model. compile (optimizer= 'adam' , loss= 'categorical_crossentropy' , metrics=[ 'accuracy' ]) model.fit(x_train, y_train, epochs= 10 , batch_size= 128 , validation_data=(x_test, y_test)) test_loss, test_acc = model.evaluate(x_test, y_test) print ( 'Test accuracy:' , test_acc) ==...

Artificial Intelligence

Artificial Intelligence (AI) is a technology that simulates human intelligence. In March 2016, AlphaGo, an AI program, competed against Lee Sedol, a world champion Go player. AlphaGo won the match 4-1, marking a significant milestone in AI's development. Many people believed that this victory demonstrated AI's ability to surpass human capabilities in certain areas, even though some argued that it was the last time a human would defeat an AI in a competitive match. Prior to this event, AI was often seen as a concept from science fiction. However, AlphaGo's victory sparked widespread interest in AI and its potential applications. This led to a surge in research and development, resulting in the creation of many AI applications based on various techniques such as Multilayer Perceptrons (MLP), Recurrent Neural Networks (RNN), and Convolutional Neural Networks (CNN).

How to run when you have limited time

 In the first state, Running was something I can do with a bit long time and proper clothes. By the way, I received some advice from Mr. Kim who also enjoyed running by himself. He suggested that You can run whenver you want in your neighborhood especially when you have limited time for running. And He also mentioned about the outfit. You don't need to consider others looking at me. Actually people living in modern society is very busy with their own business.  They normally don't think much what clothe you put on. Just unique behaviour running in the city is interesting to them. In some manners, They might even want to run like You.

Challenge running on chuseok holidays

Image
The image below displays Chuseok holidays in Korea.  Body can become heavy if we don't do any exercise and eat much food during long holidays. Therefore, I planned to run every day.  On the 14th, 15th, The course distance below is 5.2 km. (Because I did two laps) On the 16th, 17th, The course distance below is 4.24 km. (Because I went back and forth) On the 18th, The course distance below is 4.02 km. The goal running during chuseok holidays is accompolished.  While I am running along the Han River, I could see many runners even though the weather was hot today.

How to run

 When you run a long distance, It's important how to put your foot on the ground. If you run frequently and for long periods of time, how you place your feet on the ground can have a big impact on your knees. There are three ways to place foot on the ground. It's distinguished by what part of your sole you place on the ground first. When you run a long distance, you have to place front or middle part of your sole first on the ground. In case of me, I am using middle part of sole of my foot. In my experience, with this running posture you can reduce the impact on knee while you running. You can protect your knees and legs from frequent running with good running posture.

Why I started running.

I used to always come in first place when we had running races in the military. After I got out of the military, I forgot about running for about 5 years.  However, on a day when I had plenty of time and I was filled with thoughts, I started running by chance. I've run since 2003. I started running along the Han River. Running is a something which gives an energy into the body. Not only that, but running also stops my racing thoughts and gives my mind a rest.