<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Python - Category - Zhiverse</title><link>https://yao-chih.netlify.app/en/categories/python/</link><description>Python - Category - Zhiverse</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>yaochihh@gmail.com (Josh)</managingEditor><webMaster>yaochihh@gmail.com (Josh)</webMaster><copyright>Zhiverse</copyright><atom:link href="https://yao-chih.netlify.app/en/categories/python/" rel="self" type="application/rss+xml"/><item><title>Spatiotemporal Prediction of Unknown Areas Based on Structured State Space Diffusion and Resolution Adaptive Fixed Rank Kriging</title><link>https://yao-chih.netlify.app/en/spatiotemporal-prediction-of-unknown-areas-based-on-structured-state-space-diffusion-and-resolution-adaptive-fixed-rank-kriging/</link><pubDate>Tue, 28 Jul 2026 00:00:00 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/spatiotemporal-prediction-of-unknown-areas-based-on-structured-state-space-diffusion-and-resolution-adaptive-fixed-rank-kriging/</guid><description><![CDATA[<div class="details admonition info open">
        <div class="details-summary admonition-title">
            <i class="icon fas fa-info-circle fa-fw" aria-hidden="true"></i>Abstract<i class="details-icon fas fa-angle-right fa-fw" aria-hidden="true"></i>
        </div>
        <div class="details-content">
            <div class="admonition-content"><p>With the rapid advancement of sensing and remote sensing technologies, data collected in transportation, meteorology, and environmental monitoring have become increasingly characterized by high-frequency observations and cross-regional spatiotemporal dependencies. However, missing observations, irregular sampling, and prediction at unobserved locations remain major challenges for spatiotemporal forecasting. To address these issues, this study proposes a spatiotemporal forecasting framework, $\text{SSSD}^{\text{S4+MRTS}}$ + AFRK, which integrates Structured State Space Diffusion Model with S4 Layers ($\text{SSSD}^{\text{S4}}$) and Multi-Resolution Thin-Plate Spline (MRTS) basis functions to jointly model long-range temporal dependencies and spatial structural patterns. MRTS is incorporated into the S4 layers as additional spatial conditioning information, enabling $\text{SSSD}^{\text{S4+MRTS}}$ to learn spatiotemporal dynamics conditioned on observed locations. During inference, the framework further integrates MRTS-based Resolution Adaptive Fixed Rank Kriging (AFRK), which preserves the spatial consistency of the predicted field while enabling interpolation at unobserved locations. Experiments conducted on the Weather2K, MERRA-2, and the dataset from The Second Competition on Spatial Statistics for Large Datasets are used to compare the proposed framework with Temporal Fusion Transformers (TFT), Vector Autoregression (VAR), Stochastic Variational Gaussian Process (SVGP), and Spatio-temporal DeepKriging (STDK). The results demonstrate that $\text{SSSD}^{\text{S4+MRTS}}$ generally improves Mean Squared Prediction Error (MSPE) under most experimental settings, with particularly notable gains in future forecasting at unobserved locations. Overall, the findings indicate that integrating temporal dynamic modeling with spatial statistical methods effectively enhances spatiotemporal forecasting performance under missing-data and spatial extrapolation scenarios.</p>
<p><strong>Keywords</strong>: Structured State Space Diffusion Model, Multi-Resolution Thin-Plate Spline Basis Functions, Resolution Adaptive Fixed Rank Kriging, spatiotemporal forecasting, spatial interpolation, missing data imputation</p>
</div>
        </div>
    </div>]]></description></item><item><title>CNN Image Recognition Experiment</title><link>https://yao-chih.netlify.app/en/cnn-image-recognition-experiment/</link><pubDate>Fri, 17 Jul 2026 11:03:26 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/cnn-image-recognition-experiment/</guid><description><![CDATA[<div class="featured-image">
                <img src="https://Josh-test-lab.github.io/posts/CNN%20Image%20Recognition%20Experiment/cover%20image.webp" referrerpolicy="no-referrer">
            </div><p>The cover image was generated by ChatGPT.</p>
<div class="details admonition tip open">
        <div class="details-summary admonition-title">
            <i class="icon fas fa-lightbulb fa-fw" aria-hidden="true"></i>Tip<i class="details-icon fas fa-angle-right fa-fw" aria-hidden="true"></i>
        </div>
        <div class="details-content">
            <div class="admonition-content">This project was written in August 2023. The following content primarily documents my initial experience learning and experimenting with deep learning at that time. As such, some explanations and viewpoints have been preserved to reflect my understanding during that period.</div>
        </div>
    </div>
<p>The year 2023 marked the rapid rise of generative artificial intelligence. From large language models to a wide range of AI-powered applications, artificial intelligence gradually became part of everyday life, making <strong>deep learning</strong> one of the most prominent and widely discussed technologies of the year.</p>
<p>For me, 2023 also marked the beginning of my journey into the world of deep learning, as I built and experimented with my first deep learning models.</p>]]></description></item><item><title>[Thought] Historical Earthquake Locations Around Taiwan</title><link>https://yao-chih.netlify.app/en/historical-earthquake-locations-around-taiwan/</link><pubDate>Wed, 15 Jul 2026 11:03:01 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/historical-earthquake-locations-around-taiwan/</guid><description><![CDATA[<div class="featured-image">
                <img src="https://Josh-test-lab.github.io/posts/Historical%20Earthquake%20Locations%20Around%20Taiwan/cover%20image.webp" referrerpolicy="no-referrer">
            </div><div class="details admonition tip open">
        <div class="details-summary admonition-title">
            <i class="icon fas fa-lightbulb fa-fw" aria-hidden="true"></i>Tip<i class="details-icon fas fa-angle-right fa-fw" aria-hidden="true"></i>
        </div>
        <div class="details-content">
            <div class="admonition-content">This project was written in January 2026.</div>
        </div>
    </div>]]></description></item><item><title>Python Mathematical Computation Performance Benchmark</title><link>https://yao-chih.netlify.app/en/python-mathematical-computation-performance-benchmark/</link><pubDate>Fri, 10 Jul 2026 11:03:37 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/python-mathematical-computation-performance-benchmark/</guid><description><![CDATA[<div class="featured-image">
                <img src="https://josh-test-lab.github.io/posts/Python%20Mathematical%20Computation%20Performance%20Benchmark/cover%20image.webp" referrerpolicy="no-referrer">
            </div><p>The cover image was generated by Google Gemini.</p>
<div class="details admonition tip open">
        <div class="details-summary admonition-title">
            <i class="icon fas fa-lightbulb fa-fw" aria-hidden="true"></i>Tip<i class="details-icon fas fa-angle-right fa-fw" aria-hidden="true"></i>
        </div>
        <div class="details-content">
            <div class="admonition-content">This project was written in October 2024.</div>
        </div>
    </div>
<p>While taking the graduate course <em>Simulation Study</em>, the instructor mentioned that the random numbers used in modern computers and programming are mostly not truly random in the strict sense, but rather <strong>pseudo-random numbers</strong>. Pseudo-random numbers are generated through mathematical algorithms that compute the next value based on the previous state. Therefore, as long as the algorithm, initial value (Seed), and current state are known, the entire random number sequence can theoretically be reproduced. This raises an interesting question: if every pseudo-random number can be calculated from the previous value, where does the very first number come from?</p>]]></description></item><item><title>Notes on Creating Python Modules</title><link>https://yao-chih.netlify.app/en/notes-on-creating-python-modules/</link><pubDate>Mon, 13 Oct 2025 19:40:04 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/notes-on-creating-python-modules/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/Josh-test-lab/website-assets-repository/refs/heads/main/posts/Notes%20on%20Creating%20Python%20Modules/cover%20image.webp" referrerpolicy="no-referrer">
            &lt;/div>Recently, I've been learning how to package Python code for quick sharing and easy installation. After exploring various distribution methods, I realized that creating a Python module is probably one of the most convenient options, mainly because it saves me from having to reinstall everything repeatedly.</description></item><item><title>Image Compression Tool</title><link>https://yao-chih.netlify.app/en/image-compression-tool/</link><pubDate>Tue, 15 Jul 2025 20:23:26 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/image-compression-tool/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/Josh-test-lab/website-assets-repository/refs/heads/main/posts/Image%20compression%20tool/cover%20image.png" referrerpolicy="no-referrer">
            &lt;/div>在平時建立網站頁面時，我們會發現有時候有些頁面需要讀取一段時間才能出現，而有些頁面卻沒有。經過比較不同網頁後得出一個結論，網頁內的圖片如果大小過大，會造成網頁讀取速度較慢，因此萌生出要找到一款能夠壓縮目前網站目錄下所有圖片工具。但找來找去，網路上都沒有找到合適的應用程式，最後決定自己製作一款能夠壓縮所有圖片的程式。</description></item><item><title>Dataset Exploration and Analysis #2</title><link>https://yao-chih.netlify.app/en/dataset-exploration-and-analysis-ep.2/</link><pubDate>Mon, 28 Apr 2025 19:51:50 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/dataset-exploration-and-analysis-ep.2/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/Josh-test-lab/website-assets-repository/main/posts/Dataset%20Exploration%20and%20Analysis%20EP.2/cover%20image.png" referrerpolicy="no-referrer">
            &lt;/div></description></item><item><title>Principal Component Analysis (PCA)</title><link>https://yao-chih.netlify.app/en/principal-component-analysis/</link><pubDate>Tue, 25 Mar 2025 15:09:49 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/principal-component-analysis/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/Josh-test-lab/website-assets-repository/refs/heads/main/posts/Principal%20Component%20Analysis/cover%20image.webp" referrerpolicy="no-referrer">
            &lt;/div>Principal Component Analysis (PCA) is a commonly used dimension reduction method. It transforms an originally linearly dependent dataset into a set of linearly independent new variables through an orthogonal transformation. This process minimizes the loss of information when projecting the dataset onto these new variables. These new variables are ranked based on their variance, with the one having the highest variance called the first principal component, the second highest called the second principal component, and so on. PCA is widely used to map high-dimensional data into lower-dimensional space while preserving as much of the original data’s key features and information as possible.</description></item><item><title>Reading and Writing Files with NumPy in Python</title><link>https://yao-chih.netlify.app/en/reading-and-writing-files-with-numpy-in-python/</link><pubDate>Wed, 26 Feb 2025 07:38:14 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/reading-and-writing-files-with-numpy-in-python/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/numpy/numpy/refs/heads/main/branding/logo/primary/numpylogo.svg" referrerpolicy="no-referrer">
            &lt;/div></description></item><item><title>Python module PyTorch introduction and basic syntax</title><link>https://yao-chih.netlify.app/en/python-module-pytorch-introduction-and-basic-syntax/</link><pubDate>Sun, 23 Feb 2025 13:32:12 +0800</pubDate><author>Author</author><guid>https://yao-chih.netlify.app/en/python-module-pytorch-introduction-and-basic-syntax/</guid><description>&lt;div class="featured-image">
                &lt;img src="https://raw.githubusercontent.com/pytorch/pytorch/main/docs/source/_static/img/pytorch-logo-dark.svg" referrerpolicy="no-referrer">
            &lt;/div></description></item></channel></rss>