Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Train a simple fully-connected network on MNIST digits using Gluon API.
import mxnet as mx
from mxnet.gluon import nn, data as gdata
from mxnet import autograd
mnist_train = gdata.vision.MNIST(train=True)
mnist_test = gdata.vision.MNIST(train=False)
batch_size = 64
train_data = gdata.DataLoader(mnist_train.transform_first(gdata.vision.transforms.ToTensor()), batch_size=batch_size)
test_data = gdata.DataLoader(mnist_test.transform_first(gdata.vision.transforms.ToTensor()), batch_size=batch_size)
net = nn.Sequential()
with net.name_scope():
net.add(nn.Flatten())
net.add(nn.Dense(128, activation='relu'))
net.add(nn.Dense(10))
net.initialize(mx.init.Xavier())
loss = gluon.loss.SoftmaxCrossEntropyLoss()
trainer = gluon.Trainer(net.collect_params(), 'adam')Money is a universally accepted medium of exchange, a store of value, and a unit of account that facilitates trade, investment, and economic activity across societies and markets.
Origin & Creator
The concept of money evolved organically over millennia, with early forms including commodity money like gold, silver, and livestock. Formal currency systems were introduced by ancient civilizations such as Mesopotamia and Lydia.
Industrial Note
Money underpins all economic activity, enabling banking, investment, trade, and the functioning of financial markets worldwide.