This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| def compute_kernel(f, xtr): | |
| ''' | |
| :param f: neural network with scalar output | |
| :param xtr: images trainset [P, ...] | |
| ''' | |
| ktrtr, _, _ = compute_kernels(f, xtr, xtr[:1]) | |
| return ktrtr |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate lettre; | |
| extern crate env_logger; | |
| use lettre::email::EmailBuilder; | |
| use lettre::transport::smtp::SmtpTransportBuilder; | |
| use lettre::transport::EmailTransport; | |
| use std::error::Error; | |
| fn main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global DATA; | |
| DATA = []; | |
| for (var message in getMessages()) { // à cette ligne : Interruption IA : Erreur d'execution : Trop d'opérations éxécutées pour ce tour | |
| var author = getMessageAuthor(message); | |
| if (getFarmerID(author) !== getFarmerID()) continue; | |
| if (getMessageType(message) !== MESSAGE_CUSTOM) continue; | |
| var content = getMessageParams(message); | |
| if (typeOf(content) !== TYPE_ARRAY or count(content) !== 2) continue; | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder