fix governance reqs; allow for sandboxed jupyter notebooks for testing
This commit is contained in:
@@ -81,33 +81,48 @@
|
||||
}
|
||||
</section>
|
||||
|
||||
<section aria-labelledby="artifacts-title">
|
||||
<h3 id="artifacts-title">Artefactos</h3>
|
||||
<p class="muted">Guardados en la corrida de MLflow; ábrelos desde el servidor de MLflow.</p>
|
||||
<section aria-labelledby="routines-title">
|
||||
<h3 id="routines-title">Rutinas del entrenamiento</h3>
|
||||
<p class="muted">Lo que cada rutina hizo, registrado por la corrida mientras entrenaba (ML-01a).</p>
|
||||
<ul class="artifacts">
|
||||
@for (artifact of l.artifacts; track artifact) {
|
||||
@for (routine of routineKinds; track routine.kind) {
|
||||
@let record = l.routines[routine.kind];
|
||||
<li [class.checks__fail]="!record">
|
||||
<mat-icon aria-hidden="true">{{ record ? 'check_circle' : 'cancel' }}</mat-icon>
|
||||
<span class="artifacts__kind">{{ routine.label }}</span>
|
||||
@if (record) {
|
||||
<details class="routine">
|
||||
<summary>{{ record['method'] ?? 'Ver registro' }}</summary>
|
||||
<pre>{{ record | json }}</pre>
|
||||
</details>
|
||||
} @else {
|
||||
<span class="muted">La corrida no la registró.</span>
|
||||
}
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section aria-labelledby="artifacts-title">
|
||||
<h3 id="artifacts-title">Archivos de la corrida</h3>
|
||||
<ul class="artifacts">
|
||||
@for (file of files(l.artifacts); track file.path) {
|
||||
<li>
|
||||
<mat-icon aria-hidden="true">description</mat-icon>
|
||||
<span class="artifacts__kind">{{ artifactKindOf(artifact) }}</span>
|
||||
<span class="artifacts__name">{{ artifactName(artifact) }}</span>
|
||||
<a class="artifacts__name" [href]="artifactUrl(file.path)" download>{{ file.label }}</a>
|
||||
@if (file.size !== null) {
|
||||
<span class="muted">{{ file.size | number }} B</span>
|
||||
}
|
||||
</li>
|
||||
} @empty {
|
||||
<li class="muted">Sin artefactos.</li>
|
||||
<li class="muted">Sin archivos.</li>
|
||||
}
|
||||
</ul>
|
||||
<div class="upload">
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic">
|
||||
<mat-label>Tipo</mat-label>
|
||||
<mat-select [value]="artifactKind()" (valueChange)="artifactKind.set($event)">
|
||||
@for (kind of artifactKinds; track kind.id) {
|
||||
<mat-option [value]="kind.id">{{ kind.label }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<button mat-stroked-button type="button" [disabled]="busy()" (click)="fileInput.click()">
|
||||
<mat-icon aria-hidden="true">upload_file</mat-icon>Subir artefacto
|
||||
<button mat-stroked-button type="button" (click)="tryInNotebook()">
|
||||
<mat-icon aria-hidden="true">science</mat-icon>Probar en un notebook
|
||||
</button>
|
||||
<input #fileInput type="file" hidden (change)="uploadArtifact($event)" />
|
||||
<span class="muted">Corre un notebook propio sobre una cohorte, con esta versión cargada.</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user