TensorExpert is a composite system designed to streamline the processes of experimenting with TensorFlow neural network models. It provides a React web application that provides an easy to use interface to:
- Harvest data from live feeds (Websocket APIs, RSS, Social Media)
- Generate datasets from specified subsets in .tfrecord format
- Generate sequential neural network models with Keras.
- Train models using datasets
This system aims to lower the learning curve for new developers wanting to experiment with neural network training using TensorFlow.
- Websocket Feed Support for Sequential Data (Feb 2018)
- RSS News Feed Support (Sep 2018)
- React Web Interface (Jan 2019)
- Dataset & Model Creation via UI (Feb 2019)
- Model Training via UI (Feb 2019)
Defines a generic extendible Account as a base model for every user of the UI system. The defined AccountManager can be used by other components to access Account information through the AccountMongoHelper found in the database directory.
An agent for each type of data source is defined to collect data and use a database helper to store it. An AgentManager is defined to manage multiple agents from a singular interface. The agents implemented are listed below:
- CryptoAgent
- GDAXAgent
- BinanceAgent
- MediaAgent
- RSSAgent
Logistics for data analytics are located under the analytics package.
The Authenticator class provides authentication methods, and uses the AuthMongoHelper from databases to store and retrieve the data. Credentials are securely hashed and salted using SHA-512 with 1024 iterations before storing in the MongoDB server.
All application constant values that are shared across modules are included here.
Under the databases folder, supported exchange and currency pair definitions can be found within CurrencyPairs.py and Exchanges.py. The database helpers listed below provide convenient access to the databases with high level interfaces that assure proper schema and optimal operations.
- MongoHelper: Base class implementation for a MongoHelper
- AccountsMongoHelper: Provides account database access for information update/retrieval.
- AuthMongoHelper: Provides an interface to access authentication data.
- CryptoAgentMongoHelper: Provides writing methods for CryptoAgents to save CryptoTicker data.
- MediaAgentMongoHelper: Provides writing methods for MediaAgents to save media data.
- CryptoMongoHelper: Provides accessor methods for CryptoTicker data.
Under the datasets folder, there are several implementations for automating the generation of a dataset capable of generating a tf.data input pipeline. The TimeSeriesDataset class defines a time series, further subclassed by the CryptoDataset, which automatically generates datasets for given time intervals using a CryptoMongoHelper. The DatasetManager allows for management of datasets from a singular interface.
This folder provides diagrams as .vsdx documents for Microsoft Visio or .pdf documents that aid in achieving a wholesome understanding of the TensorExpert system.
Logs are stored within this directory. No code or dependencies should be in here.
Models are defined in a base class and expanded to different types. Currently, only SequentialModel is implemented. These are made to be generated from the web interface, and are capable of generating TensorFlow models for training.
Different types of traders that focus on different techniques will be found under the Traders directory.
The trainer package includes trainers for different types of models. The SequentialModelTrainer is capable of executing a training session for a SequentialModel. This functionality should be accessed through the TrainerManager.
As the name suggests, utility classes are included within. Most importantly, the Safe class, which provides safe input validation, the Logger class providing convenient console and file logging, and the Color class, for convenient access to UNIX command line output color codes.
Under the TensorExpertServer folder, TensorExpertServer defines a class that uses the Tornado framework to serve an authenticated web interface. The React web interface is also found in the directory.
- Python 3.6+
- MongoDB Server
- MongoDB Compass (optional for visualization of data)
Python dependencies can be installed by running pip install -r requirements.txt on the root folder of the repository. Nonetheless, they are listed below:
- TensorFlow
- Motor
- Tornado
- Websockets
- Feedparser
- Tweepy
Last updated: Feb 26, 2019