Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pop John committed Aug 7, 2024
1 parent d771bcb commit 0a89751
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<div class="form-field-container" [formGroupName]="controlKey">
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-select formControlName="model" placeholder="Select a model...">
<mat-optgroup label="Predefined Models">
<mat-option>
<ngx-mat-select-search [formControl]="searchModel"> </ngx-mat-select-search>
</mat-option>
<mat-option>
<ngx-mat-select-search [formControl]="searchModel"> </ngx-mat-select-search>
</mat-option>

<mat-optgroup label="Predefined Models">
@if (filteredModels | async; as models) { @for (model of models; track model.name) {
<mat-option [value]="model.name">
<mat-option [value]="model.name" [disabled]="!model.isTrained">
{{ model.name }}
@if (!model.isTrained) {
<mat-icon class="mat-error" fontSet="ms" fontIcon="icon-X"></mat-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<div class="form-field-container" [formGroupName]="controlKey">
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-select formControlName="model" placeholder="Select a model...">
<mat-optgroup label="Predefined Models">
<mat-option>
<ngx-mat-select-search [formControl]="searchModel"> </ngx-mat-select-search>
</mat-option>
<mat-option>
<ngx-mat-select-search [formControl]="searchModel"> </ngx-mat-select-search>
</mat-option>

<mat-optgroup label="Predefined Models">
@if (filteredModels | async; as models) { @for (model of models; track model.name) {
<mat-option [value]="model.name" [disabled]="!model.isTrained">
{{ model.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { CommonModule } from '@angular/common';
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, inject } from '@angular/core';
import { ControlContainer, FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { ControlContainer, FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
Expand Down Expand Up @@ -44,12 +44,13 @@ import { MsSpiningIndicatorComponent } from '../ms-spining-indicator/ms-spining-
selector: 'ms-panel-model',
standalone: true,
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
MatCardModule,
MatFormFieldModule,
MatSelectModule,
MatIconModule,
CommonModule,
NgxMatSelectSearchModule,
RouterLink,
MatProgressSpinnerModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
@forward './ms-tooltip';
@forward './ms-snackbar';
@forward './ms-drawer';
@forward './ms-select';
7 changes: 7 additions & 0 deletions frontend/src/app/styles/theme/components/_ms-select.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.mdc-list-item__primary-text {
width: 100%;
}

.mat-mdc-optgroup-label {
padding: 5px 16px;
}
2 changes: 2 additions & 0 deletions machine_learning_core/multiflow/prune.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def main(args):
runtimes = pd.DataFrame(runtimes)
runtimes.to_csv(os.path.join(args.output_dir, f"{args.model}_{args.pruner}_seed{args.seed}_runtimes.csv"), index=False)

print(f"Pruning task completed successfully! The pruned weights are saved in the directory: {args.output_dir}")

if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument('-p', '--pruner', type=str, required=True, choices=available_pruners)
Expand Down

0 comments on commit 0a89751

Please sign in to comment.