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
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
func MakeTwentyFour(nums []int) (expr string, found bool) { | |
// in reality, as long as len(nums) >= 1, this function just works. | |
// Just to be conformed with the problem I'm trying to solve here. |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
#constructing an array of data : A/B | |
total_A, succ_A = 3469, 98 | |
total_B, succ_B = 2798, 43 | |
observation_A = np.array([1] * succ_A + [0] * (total_A-succ_A)) | |
observation_B = np.array([1] * succ_B + [0] * (total_B-succ_B)) | |
num_simulations = 10000 |
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
package main | |
import ( | |
"context" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |