Data Science, Artificial Intelligence, AI, Machine Learning, Python.
torch.mean((torch.argmax(model(dataset['test_input']), dim=1) == dataset['test_label']).float()) results = model.train(dataset, opt="LBFGS", steps=20, metrics=(train_acc, test_acc), loss_fn=torch.nn.CrossEntropyLoss()) Obtaining the Symbolic Formula from the Model After this, a symbolic formula is