## How can I read any AI paper?

I have studied linear algebra, probability, and calculus twice. But I don’t understand how can I reach the level that I can read any AI paper and understand mathematical notation in it. What is your strategy when you see the mathematical expression that you can’t understand? For example, in Wasserstein GAN article, there are many […]

Categories

## How to create random graph where each node has at least 1 edge using Networkx

I’ve managed to create a random undirected weighted graph for testing with Dijkstra’s algorithm, but how can I make it so each node has at least one edge that connects them to the graph? I’m using Networkx and my graph generator is as follows: import networkx as nx import random random.seed() nodes = random.randint(5,10) seed […]

Categories

## YOLOv3 using OpencvSharpV4 on C# webcam live detection

I’m quite new to C# and I am trying to convert a code that I found from the blog below. https://www.died.tw/2019/01/c-yolo3-with-opencvsharp4.html The original code takes an image and does the detection on it. What I intended to do is to run a webcam and run the detection simultaneously. I managed to have the webcam running […]

Categories

## Policy Evaluation for simple MDP not converging

I am trying to code out a policy evaluation algorithm to find the $V^\pi(s)$ for all states. The following diagram below shows the MDP. In this case i let p = q = 0.5. the rewards for each states are independent of action. I.e $r(\sigma_0)$ = $r(\sigma_2)$ = 0,$r(\sigma_1)$ = 1, $r(\sigma_3)$ = 10. Terminal […]

Categories

## Non-equi join of dates using data table

I have a data table of edits: library(data.table) edits <- data.table(proposal=c(‘A’,’A’,’A’), editField=c(‘probability’,’probability’,’probability’), startDate=as.POSIXct(c(‘2017-04-14 00:00:00′,’2019-09-06 12:12:00′,’2018-10-10 15:47:00’)), endDate=as.POSIXct(c(‘2019-09-06 12:12:00′,’2018-10-10 15:47:00′,’9999-12-31 05:00:00’)), value=c(.1,.3,.1)) proposal editField startDate endDate value 1: A probability 2017-04-14 00:00:00 2019-09-06 12:12:00 0.1 2: A probability 2019-09-06 12:12:00 2018-10-10 15:47:00 0.3 3: A probability 2018-10-10 15:47:00 9999-12-31 05:00:00 0.1 That I would like to […]

Categories

## Python – How to properly align bar plots to line subplots?

I’m attempting to plot out sample size for my line plots and while the bars are plotting, they’re not plotting at the appropriate place in the x-axis. attacks = 5 idealdata = fullMatrix(attacks, .5) actualdata = trueDataM(attacks, ‘crit_50’) fig, axs = plt.subplots(attacks+1, sharex=True, sharey=True) axs2 = [ax.twinx() for ax in axs] fig.text(0.5, 0.04, ‘State’, ha=’center’) […]