markov-random-fields

Error when trying to evaluate Markov Random Fields using mgcv::gam “mismatch between nb/polys supplied area names and data area names”

混江龙づ霸主 提交于 2019-12-13 14:42:07
问题 I tried to implement this great blog post by Gavin Simpson using data downloaded using the cancensus package, but I get the following error when trying to evaluate the gam: Error in smooth.construct.mrf.smooth.spec(object, dk$data, dk$knots) : mismatch between nb/polys supplied area names and data area names In addition: Warning message: In if (all.equal(sort(a.name), sort(levels(k))) != TRUE) stop("mismatch between nb/polys supplied area names and data area names") : the condition has length

Sequence learning using Conditional Random Fields?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 10:41:27
问题 I am new to sequential learning (& machine learning) & am trying to understand how to use conditional random fields to solve my problem. I have a dataset which is a sequential log of when & where did an end user of my application worked. For example, the following dataset will only have values for User1 User Facility Weekday User1 FacilityA Monday User1 FacilityB Tuesday User1 FacilityC Wednesday ... ... ... I am trying to solve the following problem: Given a weekday and facility a user

Sequence learning using Conditional Random Fields?

江枫思渺然 提交于 2019-12-02 03:26:36
I am new to sequential learning (& machine learning) & am trying to understand how to use conditional random fields to solve my problem. I have a dataset which is a sequential log of when & where did an end user of my application worked. For example, the following dataset will only have values for User1 User Facility Weekday User1 FacilityA Monday User1 FacilityB Tuesday User1 FacilityC Wednesday ... ... ... I am trying to solve the following problem: Given a weekday and facility a user worked on, what facility & weekday will they work next? To solve this problem, I started looking at