Skip to content

Commit

Permalink
Merge pull request #526 from HyunjunA/master
Browse files Browse the repository at this point in the history
remove console.log and comments
  • Loading branch information
HyunjunA authored Jan 10, 2023
2 parents 5767eaf + 0094473 commit 8580c47
Show file tree
Hide file tree
Showing 15 changed files with 162 additions and 359 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ MANIFEST
.xz
*.exe
*.mp4

package-lock.json
package.json
package-copy.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ import d3 from 'd3';
// test version
class TestLineChart extends Component {
componentDidMount() {
console.log("hello");

// train_sizes={train_sizes}
// train_scores={train_scores}
// test_scores={test_scores}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ import d3 from 'd3';
// test version
class TestLineChart extends Component {
componentDidMount() {
console.log("hello");

// train_sizes={train_sizes}
// train_scores={train_scores}
// test_scores={test_scores}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ import d3 from 'd3';
// test version
class ConfusionMatrixJSONRender extends Component {
componentDidMount() {
console.log("hello");

const { cnf_data,chartKey, chartColor, min, max } = this.props;
this.renderChart(cnf_data, chartKey, chartColor, min, max);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const DatasetCard = ({ dataset, recommender, toggleAI }) => {
icon_type = "line graph";
}

console.log("DatasetCard refresh");
// console.log("DatasetCard refresh");

if (document.getElementById("aiTooglePopup") == null && document.getElementById("aiTooglePopupready") != null) {

Expand Down
18 changes: 0 additions & 18 deletions lab/webapp/src/components/Datasets/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,6 @@ class Datasets extends Component {
const { datasets, recommender, isFetching, error, fetchDatasets, fetchRecommender } = this.props;






// React.createElement('div', null, `Hello ${this.props.toWhat}`);
console.log("Hello!!!!!!!!!!!!!")










if(isFetching) {
return (
<Loader active inverted size="large" content="Retrieving your datasets..." />
Expand All @@ -105,8 +89,6 @@ class Datasets extends Component {

if (document.getElementById("aiTooglePopupready") == null) {

console.log("aiTooglePopupready!!!")

// create a new div element id with aiTooglePopupready
var temp=document.createElement("div");
document.body.appendChild(temp);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,6 @@ function NoScore({ scoreName, scoreValueList, featureList, chartKey, chartColor,

return (

// <GaugeAll
// expList={scoreValueList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={0.5}
// max={1.0}
// />


// <DonutChart
// expList={scoreValueList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={0.5}
// max={1.0}
// />

<BarChart
expList={scoreValueList}
Expand All @@ -109,27 +93,26 @@ function NoScore({ scoreName, scoreValueList, featureList, chartKey, chartColor,

);

} else if (scoreValueList && type == "r2_or_vaf") {
return (
<GaugeAll
expList={scoreValueList}
chartKey={chartKey}
chartColor={chartColor}
min={0}
max={1.0}
/>
);
} else if (scoreValueList && type == "pearsonr") {
} else if (scoreValueList && type == "regression") {

console.log("scoreValueList && type == regression")

return (
<GaugeAll
expList={scoreValueList}
chartKey={chartKey}
chartColor={chartColor}
min={-1.0}
max={1.0}
/>


<BarChart
expList={scoreValueList}
ylist={featureList}
chartKey={chartKey}
chartColor={chartColor}
min={0.5}
max={1.0}
/>


);
}

}

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,7 @@ function foldcheck(fold) {

function NoScore({ scoreName, train_sizes, train_scores, test_scores, chartKey, chartColor, type }) {
const getCardContent = () => {
// if(typeof(scoreValue) !== 'number' && !scoreValueList.length)
// {
// if (scoreName.includes('AUC') ) {
// return (
// <Header inverted size="tiny" content={`${scoreName} is only available for binary classification.`} />
// );
// } else {
// return (
// <Header inverted size="tiny" content={`${scoreName} is not available.`} />
// );
// }
// }


if (train_sizes && train_scores && test_scores && type == "classification") {

Expand Down
41 changes: 3 additions & 38 deletions lab/webapp/src/components/Results/components/PCAJSON/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,12 @@ function foldcheck(fold) {

if (Points && Labels && type == "classification") {

console.log("i am here in no score");
console.log('labels', Labels);
// console.log("i am here in no score");
// console.log('labels', Labels);

return (

// <GaugeAll
// expList={LabelsList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={0.5}
// max={1.0}
// />


// <DonutChart
// expList={LabelsList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={0.5}
// max={1.0}
// />


// Points, Labels, chartKey, chartColor, type
Expand All @@ -118,27 +103,7 @@ function foldcheck(fold) {
);

}
// else if (LabelsList && type == "r2_or_vaf") {
// return (
// <GaugeAll
// expList={LabelsList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={0}
// max={1.0}
// />
// );
// } else if (LabelsList && type == "pearsonr") {
// return (
// <GaugeAll
// expList={LabelsList}
// chartKey={chartKey}
// chartColor={chartColor}
// min={-1.0}
// max={1.0}
// />
// );
// }


};

Expand Down
20 changes: 19 additions & 1 deletion lab/webapp/src/components/Results/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -523,13 +523,31 @@ class Results extends Component {
finishTime={experiment.data.finished}
launchedBy={experiment.data.launched_by}
/>
<ImportanceScore file={importanceScore} />
{/* <ImportanceScore file={importanceScore} /> */}
<ImportanceScoreJSON
scoreName="Feature Importance"
scoreValueList={experiment.data.feature_importances}
featureList={experiment.data.feature_names}
chartKey="importance_score"
chartColor="#55D6BE"
type="regression"
/>

</Grid.Column>
<Grid.Column>
<RegFigure file={reg_cv_pred} />
<RegFigure file={reg_cv_resi} />
<RegFigure file={reg_cv_qq} />

{/* <PCAJSON scoreName="PCA 2D"
Points={experiment.data.X_pca}
Labels={experiment.data.y_pca}
chartKey="pca_2d"
chartColor="#55D6BE"
type="classification"
/> */}


</Grid.Column>
<Grid.Column>
<MSEMAEDetails
Expand Down
10 changes: 0 additions & 10 deletions lab/webapp/src/components/SceneHeader/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ function SceneHeader({
fileIcon.parentNode.removeChild(fileIcon);
}

console.log("clearing file icons at the first page");









}

if (window.location.href.includes("upload_") == false) {
Expand Down
1 change: 0 additions & 1 deletion lab/webapp/src/components/TestLineChart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ import d3 from 'd3';
// test version
class TestLineChart extends Component {
componentDidMount() {
console.log("hello");
// train_sizes={train_sizes}
// train_scores={train_scores}
// test_scores={test_scores}
Expand Down
3 changes: 0 additions & 3 deletions lab/webapp/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ configSocket(store);
*
*/


console.log("This is main page!!!")

render(
<Root store={store} />,
document.getElementById('app')
Expand Down
Loading

0 comments on commit 8580c47

Please sign in to comment.