x_test</span>, <span class='va'>y_test</span><span class='op'>)</span> <span class='op'>%&lt;-%</span> <span class='va'>imdb</span><span class='op'>$</span><span class='va'>test</span>

<span class='co'># AutoKeras procceses each text data point as a character vector,</span>
<span class='co'># i.e., x_train[[1]] "&lt;START&gt; this film was just brilliant casting..",</span>
<span class='co'># so we need to transform the dataset.</span>
<span class='va'>word_index</span> <span class='op'>&lt;-</span> <span c