類神經學習筆記(一)

 def km_to_mile(km):

    return km / 1.609  # 真實轉換值


# 初始設定

km = float(input("請輸入公里數:"))

true_mile = km_to_mile(km)

factor = 0.5  # 任意起始係數

lr = 0.01     # 學習率

max_iter = 10000  # 最大迭代次數


for i in range(max_iter):

    predicted_mile = km * factor

    error = predicted_mile - true_mile


    if abs(error) < 0.1:

        print(f"迭代次數:{i}")

        print(f"最終預測英哩:{predicted_mile:.4f}")

        print(f"真實英哩:{true_mile:.4f}")

        print(f"誤差:{error:.4f}")

        print(f"學到的係數:{factor:.6f}")

        break


    # 調整係數:簡單梯度下降

    factor -= lr * error


else:

    print("未能在指定次數內達到誤差要求")

English writing practice 2025-5/11

After graduating from university and working for several years, I developed the mindset that a job should be related to one’s interests. People would want to quit the job because of because it becomes boring.

I have to write purchase proposal documents and review electrical power system design drawings at the start of my workday. Next, I communicate with other sections to schedule engineering processes and coordinate work interfaces with different departments. The most important is I forecast material requirements and prepare those items/components in the warehouse before the project starts. Recently, I am tired of my daily duties and have thought about studying for a degree in quantum information philosophy.

Although I would like to study abroad and get a PhD, I still have to ask my family for advice and receive their support. It is important that I have a consensus with my family.

English writing practice 2025-4-18

Last year, I took a Japanese language certification test but unfortunately failed. After examining the scores I got, my biggest weakness was the listening section. Therefore, I decided to attend a Japanese language cram school to enhance my Japanese language.

The Japanese teacher is a language specialist and has great enthusiasm for Japanese. He always encourages students to talk. What’s more, He often gives listening tests. At the beginning of class, I found it hard to speak in Japanese. In addition, it was difficult to understand the sentences in the listening dialogues. Although learning languages is not my strength, I still worked hard. Several months later, I gradually began to understand the dialogues of listening tests. Finally, I could have small talk with classmates.

Although I wanted to pass the Japanese language certification at beginning, I think that enjoying learning is more important now. Learning foreign languages helps me broaden my horizons and understand other cultures. Therefore, I will continue to put effort into studying Japanese.

Gap year

Some people believe that students should take a gap year after finishing high school to travel or work before entering university. Others think it is better to go straight to university. Discuss both views and give your own opinion.

 

 

In America, it is common that some students would go travel or do part time jobs for one year before they enroll in university. I think it has advantages and disadvantages.

First, students could expand their horizons by traveling around. In addition, students would meet different kinds of people during jobs. It would help students learn how to interact with kinds of people and deal with negative emotions by doing part time jobs. Students also learn how to learn to cope with pressure in the workplace.On the other hand, students experience a learning gap because of gap year. They have to take half a year to get familiar with their major subject in university.

Even if gap year has disadvantages for students, I think it it is a worthwhile experience. The most important is they should plan their gap year carefully to minimize risks as much as possible.

Some people believe that in the future, all jobs will be done by robots. To what extent do you agree or disagree?

Recently, many reports, newspapers, and review journals have concluded that all jobs will eventually be done by robots. I believe this prediction could become a reality in the future. At that time, robots will transform human life across the globe.

Since the 21st century, many scientists and engineers working in large enterprises and emerging technology companies have developed cutting-edge technology, bringing once-fantastical inventions into practical applications across various fields. Artificial intelligence is now at the forefront and is gradually influencing multiple professions. For example, supervisors have to hire secretaries for arranging their schedules and writing documents drafts. However, the innovative AI platform ChatGPT performs far better than human secretaries. For this reason, integrating AI with robotics could reshape the world. In addition, it is crucial that the most great chip manufacture company, TSMC, produces much more speed of calculation. Robots with chips could complete kinds of works.

Robots will replace human labor, reducing job opportunities over time. Humanity must start considering how to adapt to this transformation.

The Appeal and Challenges of City Life

In modern era, cities have grown due to increasing of migration. Although cities have many job opportunities, cities are facing increasing disadvantages due to a growing population. Therefore, people have to think deeply for living in city or countryside.

Cities have convenient transportation such as railways, MRT and bus systems. People living in cities can take public transportation to travel anywhere. In addition, cities have museums and hold kinds of exhibitions for visitors. The most important is work chances, citizens would improve their standard of living with high salary. For this reason, people choose to migrate to cities to work for large and well-known enterprises. However, cities with large populations face several disadvantages. Governments have to deal with river pollution and shortages of drinking water. Otherwise, the cost of living is gradually increasing. The issue has become the first priority for citizens.

Although cities have several disadvantages, people still prefer to move there due to job opportunities and access to essential services. Moreover, to provide their children with a high-quality education, parents are more willing to live in cities despite the fast-paced and stressful environment.

A Weekend of Strategy: Playing Conquest and Consequence

This weekend, my friends and I played a board game called Conquest and Consequence, a three players military simulation games. My friends took on the roles of the Soviet Union and the United States. While I played as the Empire of Japan, we should get twenty five victory points.

At the first round US player paid many diplomacy cards and lift influence on United Kingdom. Surprisingly, the U.S. successfully persuaded the U.K. to join its faction, gaining access to British resources and troops. Therefore, Japan player asked marines and navy to surround Philippines. Through a swift offensive, Japan quickly took control of the region. As the game progressed, tensions escalated, US and Japan had a heavy battle in the Pacific Ocean. The U.S. Navy suffered a major defeat, forcing the American player to shift focus toward defending U.S. territories at great cost. Finally, The Soviet player remained relatively quiet but gradually gained strength and conquered the UK’s and Japan’s important city, Deli and Shenyang. In the end, Ultimately, the Soviet player emerged victorious.

Conquest and Consequence is a military and diplomacy simulation board game. Players could image themselves as a leader of those historic country and learn something about politics and military action. We could realize the world by the board game.


ChatGPT version

This weekend, my friends and I played a board game called Conquest and Consequence, a three-player military simulation game. My friends took on the roles of the Soviet Union and the United States, while I played as the Empire of Japan. To win the game, a player needed to accumulate twenty-five victory points.

In the first round, the U.S. player invested heavily in diplomacy cards and increased influence over the United Kingdom. Surprisingly, the U.S. successfully persuaded the U.K. to join its faction, gaining access to British resources and troops. In response, I mobilized Japan’s marines and navy to encircle the Philippines. Through a swift offensive, Japan quickly took control of the region.

As the game progressed, tensions escalated, leading to intense battles between the U.S. and Japan in the Pacific Ocean. The U.S. Navy suffered a major defeat, forcing the American player to shift focus toward defending U.S. territories at great cost. Meanwhile, the Soviet player remained relatively quiet but gradually gained strength. In a decisive move, the Soviet Union conquered key cities controlled by the U.K. and Japan—Delhi and Shenyang. Ultimately, the Soviet player emerged victorious. 

Conquest and Consequence is a board game that simulates military and diplomatic strategies. Players take on the roles of historical leaders, gaining insights into politics and military tactics. It provides a unique way to understand world history through strategic gameplay.

類神經學習筆記(一)

 def km_to_mile(km):     return km / 1.609  # 真實轉換值 # 初始設定 km = float(input("請輸入公里數:")) true_mile = km_to_mile(km) factor = 0.5  #...