Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error in data.frame(...): arguments imply differing number of rows: 2, 0 #5

@hermandr

Description

@hermandr

I tried to reproduce the example in the readme.
I encountered this error.

library(reprex)
library(deepviz)
library(tidyverse)
library(keras)

model <- keras_model_sequential() %>%
  layer_dense(10, input_shape = 4) %>%
  layer_dense(2, activation = "sigmoid")

model %>% plot_model()
#> Error in data.frame(id = 1:n, type = type, label = label, stringsAsFactors = FALSE): arguments imply differing number of rows: 2, 0

Created on 2018-11-14 by the reprex package (v0.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions