File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212* limitations under the License.
1313*/
1414
15- import * as tf from "@tensorflow/tfjs-core " ;
15+ import * as tf from "@tensorflow/tfjs" ;
1616import Ndframe from "./generic" ;
1717import { Series } from "./series" ;
1818import { Utils } from "./utils" ;
Original file line number Diff line number Diff line change 1313 *
1414*/
1515
16- import * as tf from "@tensorflow/tfjs-core " ;
16+ import * as tf from "@tensorflow/tfjs" ;
1717import { table } from "table" ;
1818import { Utils } from "./utils" ;
1919import { Configs } from "../config/config" ;
2020
21+
2122const utils = new Utils ( ) ;
2223const config = new Configs ( ) ; //package wide configuration object
23-
24+ const _VERSION = "0.1.5" ;
2425export default class NDframe {
2526 /**
2627 * N-Dimensiona data structure. Stores multi-dimensional
@@ -263,6 +264,14 @@ export default class NDframe {
263264 return this . index_arr ;
264265 }
265266
267+ /**
268+ * Returns current version
269+ * @return {String } version of danfojs
270+ */
271+ get __version ( ) {
272+ return _VERSION ;
273+ }
274+
266275 /**
267276 * Sets index of the NDFrame
268277 */
Original file line number Diff line number Diff line change 1414*/
1515
1616
17- import * as tf from "@tensorflow/tfjs-core " ;
17+ import * as tf from "@tensorflow/tfjs" ;
1818import { variance , std } from 'mathjs' ;
1919import { Utils } from "./utils" ;
2020import { Str } from "./strings" ;
Original file line number Diff line number Diff line change 1- import * as tf from "@tensorflow/tfjs-core" ;
1+ import * as tf from "@tensorflow/tfjs" ;
2+ import '@tensorflow/tfjs-backend-cpu' ;
23import { Configs } from "../config/config" ;
34
45const config = new Configs ( ) ;
Original file line number Diff line number Diff line change 1- import * as tf from "@tensorflow/tfjs-core " ;
1+ import * as tf from "@tensorflow/tfjs" ;
22import fetch from "node-fetch" ;
33import XLSX from "xlsx" ;
44import { open , Dataset , isDataset } from "frictionless.js" ;
@@ -191,7 +191,7 @@ export const read = async (
191191 }
192192 }
193193
194- if ( [ "csv" , "xls" , "xlsx" ] . includes ( await file . descriptor . format ) ) {
194+ if ( [ "csv" , "xls" , "xlsx" ] . includes ( await file . descriptor . format ) ) {
195195 if ( header ) {
196196 let df = new DataFrame ( rows . slice ( 1 ) , { columns : rows [ 0 ] } ) ;
197197 return df ;
Original file line number Diff line number Diff line change 1- import * as tf from "@tensorflow/tfjs-core " ;
1+ import * as tf from "@tensorflow/tfjs" ;
22import { Series } from "../core/series" ;
33import { DataFrame } from "../core/frame" ;
44import { Utils } from "../core/utils" ;
You can’t perform that action at this time.
0 commit comments