Page Not Found
Page not found. Your pixels are in another canvas.
A list of all the posts and pages found on the site. For you robots out there is an XML version available for digesting as well.
Page not found. Your pixels are in another canvas.
About Me
Published:
Siamese network is an architecture which runs two networks with shared weights (effectively runs the same network twice) on two different inputs simultaneously. It is commonly trained with a contrastive loss such as triplet loss in order to draw together the representations of similar inputs and push apart the representations of contrasting inputs.
Published:
Use ${BASH_SOURCE[0]}
to reference the filepath of a Bash script. Unlike $0
, this works if the script is called via bash script.sh
or source script.sh
.
Published:
webcam-mods is the best method I have found for webcam background blur/swap on Linux. I use this for my meetings on Google Meet and Webex.
Published:
I fell into the habit of using any()
to check if a list is empty. It’s nice because it works for any enumerable, including generators, even if len()
is not defined. However, it has a pitfall where if the list is nonempty but contains only falsy values, any()
returns False
. For this reason, I advise to use len()
to check if a list is empty.
Published:
You may know that you can use head -n $n
to get the first N lines of a list. But you may not know that you can supply n=-0
to get all items in the list.
Published:
Recently I wanted to write program logs to a file, then copy it to the directory where I store my checkpoints. Because I want to log things before I create the checkpoint directory, I attached my logger to a file in my root directory.
Published:
PyTorch Lightning + TorchMetrics can log metrics per step and per epoch. It also has MetricCollection
, which can be used to compute several metrics at once, getting rid of redundant code. Here is how I have it set up:
Published:
Use this snippet to print a pd.Series
of floats as percentages.
.apply(lambda x: x * 100).apply("{:,.2f}%".format)
Published:
Encoder decoder is a deep neural network architecture that consists of 2 components:
Published:
I can use jq
to print the keys in an array of JSON objects quickly.
jq '.[0] | keys[]' $filename
Published:
Embeddings are used to map high-dimensional data to low-dimensional floating-point representation. This may improve the performance because it improves the representation of the input given to the model.
Published:
I’m reading Marcus Aurelius’s Meditations in Marcus Aurelius and His Times (Transition from Paganism to Christianity) [0].
Published:
I’ve recently been studying history in the Bible by following along with the phenomenal podcast of the same name, History in the Bible by Garry Stevens. As part of his series, I learned about gematria, which is the ancient practice of assigning a number to a name based on the letters in the name.
Published:
Program analysis methods often represent programs as graphs. These graphs should be automatically generated from the source code. There are many tools that have been implemented to do this, but they are often painful to set up. In this post, I will compare 3 program analysis frameworks which I have used to generate graph representations of C programs.
Published in Preprints, 2020
Flexibility of polymers defined by an equation in 2019 is related here to thermal conductivity, using reliable data for both properties found in the literature. The resulting equation is simple, it has the form of a quadratic polynomial.
Recommended citation: Brostow, W.; Fałtynowicz, H.; Zhang, D. A Relation Between Flexibility And Thermal Conductivity of Polymers. Preprints 2020, 2020060230 https://www.preprints.org/manuscript/202006.0230/v1
Published in Materials Letters, 2020
We provide for polymers an equation relating their tensile elongation at break to the Vickers hardness.
Recommended citation: Brostow, Witold, and Danny Zhang. "Tensile elongation at break for polymers related to Vickers hardness." Materials Letters 276 (2020): 128179. https://www.sciencedirect.com/science/article/abs/pii/S0167577X20308843
Published in Chemistry & Chemical Technology, 2020
We also discuss tribological properties of polymers and PBCs including frictions (static, sliding and rolling) and wear. We discuss connections between viscoelastic recovery in scratch resistance testing with brittleness B, as well as Charpy and Izod impact strengths relations with B. Flexibility Y is related to a dynamic friction.
Recommended citation: Brostow, Witold, et al. "Mechanical and tribological properties of polymers and polymer-based composites." Chem Chem Tech 14 (2020): 514-520. https://science.lpnu.ua/sites/default/files/journal-paper/2021/jun/24141/fulltext1039.pdf
Published in PloS One, 2022
In this study, to better understand the role of liver XBP1 in the pathobiology of NAFLD, we fed hepatocyte XBP1 deficient mice a HFS diet or chow and investigated UPR and other cell signaling pathways in hepatocytes, hepatic stellate cells and immune cells.
Recommended citation: Liu X, Taylor SA, Gromer KD, Zhang D, Hubchak SC, LeCuyer BE, Iwawaki T, Shi Z, Rockey DC, Green RM. Mechanisms of liver injury in high fat sugar diet fed mice that lack hepatocyte X-box binding protein 1. PLoS One. 2022 Jan 14;17(1):e0261789. doi: 10.1371/journal.pone.0261789. PMID: 35030194; PMCID: PMC8759640. https://pubmed.ncbi.nlm.nih.gov/35030194/
Published in JLR, 2022
In this paper, we sought to determine the role of the inositol-requiring enzyme 1α/XBP1 pathway in hepatic bile acid toxicity using the Fxr−/− mouse model.
Recommended citation: Liu, Xiaoying, et al. "Hepatic Deletion of X-box Binding Protein 1 in Farnesoid X Receptor Null Mice Leads to Enhanced Liver Injury." bioRxiv (2022). https://www.jlr.org/article/S0022-2275(22)00122-5/fulltext#%20
MATH 355, Rice University, Department of Mathematics, 2022
Graded assignments of 65+ students and tutored topics such as Matrix Operations, Eigenvalues, Determinants, Gram-Schmidt Process.
COMP 140, Rice University, Department of Computer Science, 2022
Host weekly office hours for 350+ undergraduates and offer feedback on algorithmic concepts, exams, and homework assignments. Teach concepts such as Markov Models, A* Search Algorithm, Depth-First Search, Breadth-First Search, Matrices, Probabilistic Models.
COMP 215, Rice University, Department of Computer Science, 2023
Instruct 250+ students in COMP 215 in object-oriented programming, test-driven development, and Java projects.