@tensorflow/tfjs-data
Advanced tools
Comparing version 0.2.0 to 1.0.0-alpha1
export { array, Dataset, zip } from './dataset'; | ||
export { CSVDataset } from './datasets/csv_dataset'; | ||
export { TextLineDataset } from './datasets/text_line_dataset'; | ||
export { csv, generator } from './readers'; | ||
export { csv, func, generator } from './readers'; | ||
export { FileDataSource } from './sources/file_data_source'; | ||
@@ -6,0 +6,0 @@ export { URLDataSource } from './sources/url_data_source'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
exports.csv = readers_1.csv; | ||
exports.func = readers_1.func; | ||
exports.generator = readers_1.generator; | ||
@@ -15,0 +16,0 @@ var file_data_source_1 = require("./sources/file_data_source"); |
@@ -5,2 +5,3 @@ import { Dataset } from './dataset'; | ||
export declare function csv(source: string, csvConfig?: CSVConfig): CSVDataset; | ||
export declare function generator<T extends DataElement>(f: () => IteratorResult<T> | Promise<IteratorResult<T>>): Dataset<T>; | ||
export declare function func<T extends DataElement>(f: () => IteratorResult<T> | Promise<IteratorResult<T>>): Dataset<T>; | ||
export declare function generator<T extends DataElement>(generator: () => (Iterator<T> | Promise<Iterator<T>>)): Dataset<T>; |
@@ -47,3 +47,3 @@ "use strict"; | ||
exports.csv = csv; | ||
function generator(f) { | ||
function func(f) { | ||
var _this = this; | ||
@@ -55,3 +55,15 @@ var iter = lazy_iterator_1.iteratorFromFunction(f); | ||
} | ||
exports.func = func; | ||
function generator(generator) { | ||
var _this = this; | ||
return dataset_1.datasetFromIteratorFn(function () { return __awaiter(_this, void 0, void 0, function () { var _a; return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a = lazy_iterator_1.iteratorFromFunction; | ||
return [4, generator()]; | ||
case 1: return [2, _a.apply(void 0, [(_b.sent()).next])]; | ||
} | ||
}); }); }); | ||
} | ||
exports.generator = generator; | ||
//# sourceMappingURL=readers.js.map |
@@ -1,2 +0,2 @@ | ||
declare const version = "0.2.0"; | ||
declare const version = "1.0.0-alpha1"; | ||
export { version }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var version = '0.2.0'; | ||
var version = '1.0.0-alpha1'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@tensorflow/tfjs-data", | ||
"version": "0.2.0", | ||
"version": "1.0.0-alpha1", | ||
"description": "TensorFlow Data API in JavaScript", | ||
@@ -14,3 +14,3 @@ "private": false, | ||
"devDependencies": { | ||
"@tensorflow/tfjs-core": "0.15.0", | ||
"@tensorflow/tfjs-core": "1.0.0-alpha1", | ||
"@types/fetch-mock": "^6.0.1", | ||
@@ -56,3 +56,3 @@ "@types/jasmine": "~2.5.53", | ||
"peerDependencies": { | ||
"@tensorflow/tfjs-core": "0.15.0" | ||
"@tensorflow/tfjs-core": "1.0.0-alpha1" | ||
}, | ||
@@ -59,0 +59,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1652330
90
8611
7