Skip to content

Commit

Permalink
Start ASCII experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-z-9000-times committed Feb 6, 2019
1 parent 481ad84 commit 19ef852
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,25 @@ add_custom_target(mnist
COMMENT "Executing ${src_executable_mnistsp}"
VERBATIM)


#########################################################
## ASCII Example
#
set(src_executable_ascii ascii)
add_executable(${src_executable_ascii} "examples/ascii.cpp")
target_link_libraries(${src_executable_ascii} ${core_library})
target_compile_options(${src_executable_ascii} PUBLIC ${INTERNAL_CXX_FLAGS})
target_compile_definitions(${src_executable_ascii} PRIVATE ${COMMON_COMPILER_DEFINITIONS})
target_include_directories(${src_executable_ascii} PRIVATE
${CORE_LIB_INCLUDES}
${EXTERNAL_INCLUDES}
)
# add_custom_target(ascii
# COMMAND ${src_executable_ascii}
# DEPENDS ${src_executable_ascii}
# COMMENT "Executing ${src_executable_ascii}"
# VERBATIM)

##################################################
#
# Install targets into CMAKE_INSTALL_PREFIX
Expand Down Expand Up @@ -384,6 +403,12 @@ install(TARGETS
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

install(TARGETS
${src_executable_ascii}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)


#
# `make package` results in
Expand Down
26 changes: 26 additions & 0 deletions src/examples/ascii.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

#include <string>
#include <fstream>
#include <streambuf>
#include <iostream>

using namespace std;


int main() {
cout << "ASCII" << endl;

auto dataFilename = "./ascii.cpp";
ifstream dataFile( dataFilename );
string str((istreambuf_iterator<char>(dataFile)), istreambuf_iterator<char>());

// Make model

// Run model

// Measure online stability

// Measure inter/intra catagory overlap

// Measure whole word classification accuracy
}

0 comments on commit 19ef852

Please sign in to comment.