Skip to content

Instantly share code, notes, and snippets.

@Jong-Sig
Jong-Sig / Clustering.ipynb
Created June 16, 2024 23:40
Applying various clustering algorithms on covid-19 co-authorship network
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Basic lib
import pandas as pd
import numpy as np
import os
import re
import glob
import csv
import json
from tqdm import tqdm
from ast import literal_eval
@Jong-Sig
Jong-Sig / CNN.ipynb
Created June 16, 2024 22:25
CNN for character recognition on MINST database
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jong-Sig
Jong-Sig / SGD.ipynb
Created June 16, 2024 22:22
Stochastic Gradient Desent to derive coefficients of non-linear models
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jong-Sig
Jong-Sig / NFATA.ipynb
Created June 16, 2024 21:54
Script to play with NAFTA data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jong-Sig
Jong-Sig / GCDDA.ipynb
Last active June 16, 2024 21:43
Script to Implement Cross-Domain Data Augmentation for Aspect and Opinion Co-Extraction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jong-Sig
Jong-Sig / TuningBERTopic.py
Created June 16, 2024 21:28
Fine-Tuning Parameters of BERTopic Using Pseudo Grid-Search and Mini-Batch
# conda activate bert-github
#%%
import pandas as pd
import numpy as np
import os
import glob
import pathlib
from tqdm import tqdm
from bs4 import BeautifulSoup
@Jong-Sig
Jong-Sig / Centrality.py
Created June 16, 2024 21:18
Draw Network and Measure Centrality
import pandas as pd
import numpy as np
import os
import networkx as nx
from itertools import combinations, chain
"""
Process
1. Matrix drawing
1) Import venture-investor pair data
@Jong-Sig
Jong-Sig / EntityNameCleaning.py
Last active June 16, 2024 21:14
Entity Name Cleaning Before Matching
import numpy as np
import pandas as pd
import sys
import os
import ast
import re
"""
# weak name standardization
@Jong-Sig
Jong-Sig / LDATopicModeling.rmd
Last active June 16, 2024 22:38
LDA Topic Modeling (R version)
---
title: "Instagram Advertisement Text Analysis"
author: "Sik Chung"
---
```{r global_options, include = FALSE}
set.seed(1234)
library(knitr)
library(markdown)