ValueError
Hiiiiiiii,I wonder why the following error appears after I copy your code and run it:
ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.
Thank you for making this list as I don't understand the internals of Automa. I think it is fine to keep the Buffer type and .data, .markpos, .marginpos, and .bufferpos fields as they are very well documented in src/buffer.jl
Also, do you know if Automa is using the unread or unsafe_unread functions? I would like to better specify how those functions interact with position and mark.
Lastly, does Automa use any of the write functions?
Automa does not use unread or unsafe_unread. It does use Base.write, but not writing to a TranscodingStream, so it shouldn't be of concern for this package.
From what I can tell, what Automa uses is:
- That you can get a
Buffercontaining the input data by doingstream.state.buffer1- this could be changed to agetbufferfunction if necessary - The fields
.markpos,.marginposand.bufferpos, and their precise meaning - That you can get a
Vector{UInt8}by reading the.datafield of aBuffer- this could perhaps be changed to a function also, since maybe in the future, this should be aMemory - That a
TranscodingStreambehaves like an ordinaryIOobject, e.g. thateofworks and returns aBool. This is perhaps too trivial to mention.