nd4j-common/src/main/java/org/nd4j/util/StringUtils.java
public static String camelize(String s) {
        StringBuilder sb = new StringBuilder();
        String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR,  '_');

        for (String word : words)
            sb.append(org.apache.commons.lang3.StringUtils.capitalize(word));

        return sb.toString();
    }
public static String camelize(String s) {
        StringBuilder sb = new StringBuilder();
        String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR,  '_');

        for (String word : words)
            sb.append(org.apache.commons.lang3.StringUtils.capitalize(word));

        return sb.toString();
    }
Convert SOME_STUFF to SomeStuff

@param s input string
@return camelized string