8 Index
List of Tables
1 Chapter 2TABLE 2-1 Differences in Blockchain TypesTABLE 2-2 Business Requirements and Blockchain Features
2 Chapter 5TABLE 5-1 Blockchain Analytics ToolsTABLE 5-2 Ethereum Blockchain Access Libraries
3 Chapter 6TABLE 6-1 Forms of Data Stored in a BlockchainTABLE 6-2 Sources of External Data
4 Chapter 7TABLE 7-1 Loan Default Data
5 Chapter 13TABLE 13-1 Pros and Cons of Popular Blockchain Client Languages
6 Chapter 15TABLE 15-1 Comparing Data Analytics Frameworks
List of Illustrations
1 Chapter 1FIGURE 1-1: Customer entities presented as a table.FIGURE 1-2: Linear regression model using hours practiced and audition scores d...
2 Chapter 3FIGURE 3-1: Viewing block header information in Etherscan.FIGURE 3-2: Listing transactions in a block in Etherscan.FIGURE 3-3: Examining a transaction in Etherscan.FIGURE 3-4: Exploring additional transaction details in Etherscan.FIGURE 3-5: Ethereum block header.FIGURE 3-6: Contents of an Ethereum transaction.FIGURE 3-7: Original format of input data.FIGURE 3-8: Decoded data for the cancelOrder()
function.FIGURE 3-9: Ethereum events in Etherscan.
3 Chapter 4FIGURE 4-1: The Go Ethereum (Geth) Download web page.FIGURE 4-2: Installation Options window.FIGURE 4-3: Geth light node startup command.FIGURE 4-4: Geth runtime messages.FIGURE 4-5: The Ganache Download web page.FIGURE 4-6: Support Ganache Analytics window.FIGURE 4-7: Ganache Accounts window.FIGURE 4-8: Ganache Settings window’s Server tab.FIGURE 4-9: Truffle installation requirements.FIGURE 4-10: Error message in PowerShell when NodeJS isn’t installed.FIGURE 4-11: The NodeJS Download page.FIGURE 4-12: The NodeJS version message.FIGURE 4-13: Installing Truffle.FIGURE 4-14: Initializing a new Truffle project.FIGURE 4-15: The Microsoft Visual Studio Code download web page.FIGURE 4-16: Visual Studio Code install options window.FIGURE 4-17: The Visual Studio Code IDE desktop.FIGURE 4-18: The Visual Studio Code IDE with the Solidity extension.
4 Chapter 5FIGURE 5-1: Python version command.FIGURE 5-2: The Python Download web page.FIGURE 5-3: Python Setup window.FIGURE 5-4: The Anaconda Distribution download web page.FIGURE 5-5: The Anaconda Navigator desktop.FIGURE 5-6: The conda
install pip
command.FIGURE 5-7: The pip install web3
command.FIGURE 5-8: Commands to create a new project directory.FIGURE 5-9: Visual Studio Code IDE with Python extension.FIGURE 5-10: The Remix web page.FIGURE 5-11: The Remix Solidity compiler page.FIGURE 5-12: Copying the SupplyChain.so
l smart contract ABI in Remix.FIGURE 5-13: Copied ABI value in the SupplyChain.abi
file.FIGURE 5-14: VS Code showSupplyChain.p
y.FIGURE 5-15: Connecting Remix to your Ganache blockchain.FIGURE 5-16: Copying a deployed contract's address.FIGURE 5-17: VS Code showSupplyChain.py
(with contract address).FIGURE 5-18: VS Code after running showSupplyChain.py
for the first time.FIGURE 5-19: Completed showSupplyChain.py
Python script.
5 Chapter 7FIGURE 7-1: Clustered customer rating data.FIGURE 7-2: Clustered customer rating data with centroids and colors.FIGURE 7-3: Weak clustered customer rating data.FIGURE 7-4: Weak clustered customer rating data with centroids and colors.FIGURE 7-5: Loan default prediction decision tree.FIGURE 7-6: Normally distributed data with mean and 95 percent confidence inter...FIGURE 7-7: Normally distributed data with mean and 99 percent confidence inter...FIGURE 7-8: Airline passenger data.FIGURE 7-9: Airline passenger data with a trend line.
6 Chapter 9FIGURE 9-1: Scatterplot showing clustered data.FIGURE 9-2: The k-means clustering algorithm visualization.FIGURE 9-3: WSS plot showing the optimal number of clusters (four).FIGURE 9-4: Scatterplot matrix of blockchain transfer data.FIGURE 9-5: The k-means algorithm applied to blockchain supply chain ownership ...
7 Chapter 10FIGURE 10-1: Decision tree for the iris dataset.FIGURE 10-2: Bayes theorem calculation of conditional probability.FIGURE 10-3: TV product data.FIGURE 10-4: Decision tree based on supply chain blockchain data.FIGURE 10-5: Output from the decisionTreeBlockchain.py
Python program.FIGURE 10-6: Gaussian (normal) distribution.
8 Chapter 11FIGURE 11-1: Data exhibiting a linear relationship.FIGURE 11-2: Data exhibiting a categorical relationship.FIGURE 11-3: Linear regression model visualization.FIGURE 11-4: Sigmoid function.FIGURE 11-5: Logistic regression model visualization.FIGURE 11-6: Logistic regression model visualization including the confusion ma...FIGURE 11-7: Linear regression model visualization based on supply chain blockc...FIGURE 11-8: Logistic regression model visualization based on supply chain bloc...
9 Chapter 12FIGURE 12-1: AXP closing stock prices.FIGURE 12-2: AXP stock price autocorrelation.FIGURE 12-3: AXP stock price differencing values of 1, 2, and 3.FIGURE 12-4: ARIMA Model build results.FIGURE 12-5: Initial Dow Jones dataframe after loading from file.FIGURE 12-6: Imported and converted Dow Jones data.FIGURE 12-7: Imported, converted, and filtered Dow Jones data.FIGURE 12-8: Dow Jones dataset raw data and moving average.FIGURE 12-9: Dow Jones dataset raw data, moving average, and ARIMA model.
10 Chapter 15FIGURE 15-1: The TensorFlow website.FIGURE 15-2: The Keras website.FIGURE 15-3: PyTorch website.FIGURE 15-4: The fast.ai website.FIGURE 15-5: The MXNet website.FIGURE 15-6: The Caffe website.FIGURE 15-7: The Deeplearning4j website.
11 Chapter 17FIGURE 17-1: Anaconda Navigator.FIGURE 17-2: Visual Studio Code.FIGURE 17-3: Jupyter Notebook.FIGURE 17-4: JupyterLab.FIGURE 17-5: RStudio IDE.FIGURE 17-6: The web3.py website.FIGURE 17-7: Infura’s architecture.FIGURE 17-8: The Vaex website.FIGURE 17-9: Etherescan.io.FIGURE 17-10: Blockchain.com Block Explorer.FIGURE 17-11: ColussusXT cryptocurrency Block Explorer.FIGURE 17-12: The MADANA website.
12 Chapter 18FIGURE 18-1: Google’s BigQuery visualization of the Ethereum blockchain.FIGURE 18-2: Stack Overflow search results for techniques for visualizing data.FIGURE 18-3: Reddit search results for visualizing data.FIGURE 18-4: The Kaggle website.FIGURE 18-5: GIGRAPH example of a network graph from Excel spreadsheet data.FIGURE 18-6: Visualization best practices example from Tableau Gurus.FIGURE 18-7: