本歌单由Listen1创建, 歌曲数:0,歌单数:0,点击查看更多
HDDM is a python project aiming at fitting hierarchical drift diffusion model. But it is complex to install it on Windows. Here I record what I tried.
- Install Microsoft C++ Build Tools, but see this discussion. Remember to add C++ tools when installing.
- Install Miniconda 3.
- Git for Windows is also required for the GFW blocks Github. In this way, we need ssh protocol (see this documentation) access to Github.
StyleGAN2 is very powerful. The project facemorph is based on it, and there is an API for the website. Here I show an example how to use the API from R, which is basically based on {httr} pacakge.
library(httr)
api_url <- "https://api.facemorph.me/api/encodeimage/"
resp <- POST(
This file contains 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(tidyverse) | |
#' Simulate Trials for Adaptive Rules | |
#' | |
#' @param num_runs The total runs. | |
#' @param streak_rule The win-streak required to increase level. | |
#' @param fast_mode Should the first run ignore `streak_rule`? | |
#' @param level_init The initial level. | |
#' @param level_limits A 1-by-2 vector specifying lower and higher limits for | |
#' levels. |