Thanks very much for sharing this library, which seems interesting
because of the extended functionality :)
# I've recently written a similar NN library in Python (to do some custom things)
and now trying to combine it with my Fortran codes... If the above library
is available, it may be useful for such cases (i.e. directly use it from the Fortran side).
By the way, the following line seems to define the derivative ("prime")
of the linear activation function (Line 103)
https://github.com/scientific-computing/FKB/blob/master/src/lib/mod_activation.F90#L103
but comparing this with Line 95,
https://github.com/scientific-computing/FKB/blob/master/src/lib/mod_activation.F90#L95
I'm wondering if it might be a typo of res = 1 ...?
(I am not sure because I haven't read the codes in detail,
but it looks like other functions have the
corresponding derivative in the "xxx_prime()" routines.)
# It might not appear as a "bug" if the linear one is not used
in practice (e.g., except for the final layer)...?