This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Goal: to explore document and term loadings with SVD, Latent Semantic Analysis | |
# Following the procedures outlined in | |
# https://sites.socsci.uci.edu/~lpearl/courses/readings/Evangelopoulos2013_LatentSemAnalysis.pdf | |
library(janeaustenr) | |
library(dplyr) | |
library(tidyr) | |
library(tidytext) | |
library(stringr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(httr2) | |
library(purrr) | |
endpoint <- "https://models.inference.ai.azure.com" | |
token <- Sys.getenv("github_token") | |
model <- "gpt-4o-mini" | |
system <- list( | |
"role" = "system", | |
"content" = "You are a helpful assistant." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tibble) | |
library(dplyr) | |
events_tb <- tibble( | |
id = 1:5, | |
val1 = rnorm(5) | |
) | |
another_info_tb <- tibble( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update \ | |
&& apt-get -y upgrade \ | |
&& apt-get install --yes \ | |
build-essential \ | |
openjdk-8-jdk \ | |
iproute2 \ | |
bash \ | |
sudo \ |