What is reflection and why is it useful?

The name reflection is used to describe code which is able to inspect other code in the same system (or itself). For example, say you have an object of an unknown type in Java, and you would like to call a ‘doSomething’ method on it if one exists. Java’s static typing system isn’t really designed … Read more

How to join (merge) data frames (inner, outer, left, right)

By using the merge function and its optional parameters: Inner join: merge(df1, df2) will work for these examples because R automatically joins the frames by common variable names, but you would most likely want to specify merge(df1, df2, by = “CustomerId”) to make sure that you were matching on only the fields you desired. You … Read more

Categories R

How to copy files from host to Docker container?

The cp command can be used to copy files. One specific file can be copied TO the container like: One specific file can be copied FROM the container like: For emphasis, container_id is a container ID, not an image ID. (Use docker ps to view listing which includes container_ids.) Multiple files contained by the folder … Read more

What is the difference between model.fit() an model.evaluate() in Keras?

fit() is for training the model with the given inputs (and corresponding training labels). evaluate() is for evaluating the already trained model using the validation (or test) data and the corresponding labels. Returns the loss value and metrics values for the model. predict() is for the actual prediction. It generates output predictions for the input … Read more

Use Notepad++ as HEX-Editor

It seems to me you tried to install a hex editor and ended up in the wrong tool (Plug-In) Converter (ASCII -> HEX) as mentioned in your question above. The installation process of the HexEditor is somewhat confusing because it is currently available only in the Plugins Admin for the 32-bit version. A simple solution … Read more