Jingbiao's Blog

「Hinc lucem et pocula sacra」

Threshold Moving - Finding optimal threshold for classification

Introduction Balanced class A class label is being predicted within a classification task. Most of the time, a threshold of 0.5 is used. Larger than 0.5 for one class (1), smaller than 0.5 for ano...

Argparser python usage

import 1 import argparse Initialise argparser 1 parser = argparse.ArgumentParser() Add arguments for the parser 1 2 parser.add_argument('--value', '-v', type=str, default='def', ...

Issue with transformer and Pytorch conflicts

In one project, the transformers package has to be version:transformers==3.5.1, and Pytorch has be >= 1.8.0 - Installing the legacy version may have some conflicts, but anaconda sh...

Issue with python JSONDecodeError

Issues Json loader issue When inputting json file into python with json.loads(_), 1 [json.loads(jline) for jline in open(path, "r").read().split('\n')] line 36 of hm_data.py a like...

Json with python

Read Json files in python Json files with no spaces or newlines Inputting json file into python with json.loads(_), Store a dictionary of a dictionary 1 2 3 # Store the json...

Paddlepaddle installation issues and fixation

Issues Conda do not have the correct version for installing paddlepaddle gpu. In order to get the correct version you need to use pip. While using pip, cudnn is not installed, and environmental var...

OFDM Audio Modem project

\( \require{amstext} \require{amsmath} \require{amssymb} \require{amsfonts} \) Introduction An OFDM audio modem that uses speaker as transmitter and microphone as receiver is developed. Communicat...

OFDM with audio modem

List of useful Transforms Pointwise product of two function in continuous time domain → Linear convolution in frequency domain Pointwise product of two functions in the continuous...

Channel estimation with OFDM random symbol

Estimation, Synchronization, and Tips

\( \require{amstext} \require{amsmath} \require{amssymb} \require{amsfonts} \) Channel estimation 1.Generate an n-length sequences of psuedo-random constellation values By means of psued...

Peterhouse Garden

Some pictures of the Peterhouse Garden in 2021 spring