@gracexwho/model-card-generator
Version:
Tool for generating model cards for Jupyter Notebook.
25 lines (20 loc) • 538 B
text/typescript
import { Cell } from "..";
export class TestCell implements Cell {
public executionEventId: string;
public persistentId: string;
constructor(
public text: string,
public executionCount: number,
executionEventId?: string,
persistentId?: string,
public hasError = false,
) {
this.executionEventId = executionEventId || genid();
this.persistentId = persistentId || genid();
}
public deepCopy() { return this; } // not used for testing
}
let ID = 0;
function genid() {
return 'id' + (ID++);
}