我正在查看文档和本指南
https://www.tensorflow.org/api_docs/python/tf/keras/utils/Sequence
https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly
我需要写
var symbol = "";
var shares = 0;
var QuotePrice = 0;
var formsBuy = document.getElementsByClassName('buy');
// Loop over them and prevent submission
Array.prototype.filter.call(formsBuy, function(form)
{
form.addEventListener('submit', function(event)
{
// alert($(this).attr("id"));
var formID = $(this).attr("id");
symbol = formID.substr(14, formID.length - 14);
$(this).each(function()
{
var input = $(this);
alert($(input).val());
switch($(input).attr("id"))
{
case "pf-buy-price":
quoteBuy = $(input).val();
break;
case "pf-buy-shares":
shares = $(input).val();
break;
default:
break;
}
});
和
def __len__(self):
这将获取数据集的长度,并使用特定的索引获取数据样本。因此,我想知道这是否适合用于多个文件,如果这样,是否有最佳实践?