klarsen1 / MarketMatching

Other
131 stars 37 forks source link

Best Match Error #8

Closed schoolgurlq-zz closed 5 years ago

schoolgurlq-zz commented 5 years ago

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

> mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

klarsen1 commented 5 years ago

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque notifications@github.com wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu .

klarsen1 commented 5 years ago

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque notifications@github.com wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu .

schoolgurlq-zz commented 5 years ago

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque notifications@github.com wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread < https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513, or mute the thread https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu .

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

klarsen1 commented 5 years ago

I can’t see the image. Can you tell what the error says?

On Sun, Oct 7, 2018 at 3:17 PM Justice Haque notifications@github.com wrote:

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque <notifications@github.com

wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu

.

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427691870, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdH4vhAcvBMykyBUeogDZkWmdJeeCks5uin2CgaJpZM4XJfgu .

schoolgurlq-zz commented 5 years ago

Sorry about that - Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period") : ERROR: no valid data in the post period In addition: Warning message: In max(date) : no non-missing arguments to max; returning -Inf

On Sun, Oct 7, 2018 at 3:17 PM Justice Haque justice@joinhoney.com wrote:

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque notifications@github.com wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread < https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513, or mute the thread https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu .

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

klarsen1 commented 5 years ago

Not sure. I think your dates are messed up somehow. The code is not finding any records when filtering.

On Sun, Oct 7, 2018 at 3:24 PM Justice Haque notifications@github.com wrote:

Sorry about that - Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period") : ERROR: no valid data in the post period In addition: Warning message: In max(date) : no non-missing arguments to max; returning -Inf

On Sun, Oct 7, 2018 at 3:17 PM Justice Haque justice@joinhoney.com wrote:

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque < notifications@github.com> wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu

.

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427692392, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdDxKD1bwoyrv3utK28_bnXOCVsyVks5uin8rgaJpZM4XJfgu .

schoolgurlq-zz commented 5 years ago

Ah - just needed to change the Market data from factor to character. It wasn't about the dates!

Thank you :)

On Sun, Oct 7, 2018 at 4:46 PM Kim Larsen notifications@github.com wrote:

Not sure. I think your dates are messed up somehow. The code is not finding any records when filtering.

On Sun, Oct 7, 2018 at 3:24 PM Justice Haque notifications@github.com wrote:

Sorry about that - Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period") : ERROR: no valid data in the post period In addition: Warning message: In max(date) : no non-missing arguments to max; returning -Inf

On Sun, Oct 7, 2018 at 3:17 PM Justice Haque justice@joinhoney.com wrote:

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque < notifications@github.com> wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513

,

or mute the thread <

https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu

.

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub < https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427692392 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AJqqdDxKD1bwoyrv3utK28_bnXOCVsyVks5uin8rgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427697148, or mute the thread https://github.com/notifications/unsubscribe-auth/Amu-BrqxTGHUqvNhm1WUjtdfnKJ8cLgYks5uipJOgaJpZM4XJfgu .

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

klarsen1 commented 5 years ago

I need to put some more error messages in!

On Mon, Oct 8, 2018 at 1:48 PM Justice Haque notifications@github.com wrote:

Ah - just needed to change the Market data from factor to character. It wasn't about the dates!

Thank you :)

On Sun, Oct 7, 2018 at 4:46 PM Kim Larsen notifications@github.com wrote:

Not sure. I think your dates are messed up somehow. The code is not finding any records when filtering.

On Sun, Oct 7, 2018 at 3:24 PM Justice Haque notifications@github.com wrote:

Sorry about that - Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period") : ERROR: no valid data in the post period In addition: Warning message: In max(date) : no non-missing arguments to max; returning -Inf

On Sun, Oct 7, 2018 at 3:17 PM Justice Haque justice@joinhoney.com wrote:

Hi Kim -- That did the trick, however, I am still seeing this issue here: [image: image.png] I've tried transforming the end_post_period value and changing the format, but I still get the same error. Any ideas here? Thanks for your help -- I really appreciate it!

On Sat, Oct 6, 2018 at 5:55 AM Kim Larsen notifications@github.com wrote:

And make sure your market column does not have NAs.

Kim

On Thu, Oct 4, 2018 at 8:31 PM Kim Larsen kblarsen4@gmail.com wrote:

Make sure all your markets have data for both periods.

Kim

On Thu, Oct 4, 2018 at 8:24 PM Justice Haque < notifications@github.com> wrote:

I'm seeing this error when I apply the best_matches piece.

Error in { : task 150 failed - "replacement has 1 row, data has 0"

Any ideas?

mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427571513

,

or mute the thread <

https://github.com/notifications/unsubscribe-auth/Amu-BgW72Gr0pZPNmqLc3KWPUXqq6uwpks5uiKglgaJpZM4XJfgu

.

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub <

https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427692392

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AJqqdDxKD1bwoyrv3utK28_bnXOCVsyVks5uin8rgaJpZM4XJfgu

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427697148 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Amu-BrqxTGHUqvNhm1WUjtdfnKJ8cLgYks5uipJOgaJpZM4XJfgu

.

-- Justice Haque | Analytics www.joinhoney.com https://www.joinhoney.com/features/trycodes | Honey https://www.facebook.com/savehoney/?fref=ts http://www.joinhoney.com

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/klarsen1/MarketMatching/issues/8#issuecomment-427974275, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdEnid5WTdPSpQ-pc8YGUYiYvPD0Dks5ui7owgaJpZM4XJfgu .

SeanRichterWalsh commented 3 weeks ago

Make sure all your markets have data for both periods. Kim On Thu, Oct 4, 2018 at 8:24 PM Justice Haque @.**> wrote: I'm seeing this error when I apply the best_matches piece. Error in { : task 150 failed - "replacement has 1 row, data has 0"* Any ideas? > mm <- best_matches(data = radio, id_variable = "market", date_variable = "week", matching_variable = "installs", parallel = TRUE, warping_limit = 1, dtw_emphasis = 1, matches = 5, start_match_period = "2017-07-03", end_match_period = "2018-09-10") — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#8>, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqqdP1gqTLLC6h_XdoMXnuGHx29LIcjks5uhtELgaJpZM4XJfgu .

Hi. Can there be irregular spacing and differences in spacing between markets? Or is it just simply that a market must have at least a few observations in each period? Thanks.