Skip to content

Commit

Permalink
update by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-at-orange committed Apr 9, 2024
1 parent f125637 commit 44abfb1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
5 changes: 2 additions & 3 deletions src/Learning/DTForest/DTDecisionTreeCost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,8 @@ double DTDecisionTreeCost::ComputeNodeCost(DTDecisionTreeNode* node, DTDecisionT

// Extraction du nombre d'intervalles de la regle de discretisation Is
// nPartNumber = oaGroups->GetSize();
attributeStats =
NULL; // NV9 cast(KWAttributeStats*,
// node->GetNodeAttributeStats()->Lookup(->LookupAttributeStats(sAttributeName));
attributeStats = NULL; // NV9 cast(KWAttributeStats*,
// node->GetNodeAttributeStats()->Lookup(->LookupAttributeStats(sAttributeName));

// cout << "sAttributeName = " << sAttributeName << endl;

Expand Down
14 changes: 6 additions & 8 deletions src/Learning/DTForest/DTDecisionTreeCreationTaskSequential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,12 @@ boolean DTDecisionTreeCreationTaskSequential::CreatePreparedAttributes(KWLearnin
AddSimpleMessage(sTmp + " ComputeTree time: \t" + DoubleToString(DTTimer_ComputeTree.GetElapsedTime()));
AddSimpleMessage(sTmp + " prepa attribut de CreatePreparedAttributes time: \t" +
DoubleToString(DTTimer_CreateAttribute.GetElapsedTime()));
AddSimpleMessage(
sTmp + " DiscretizeGFT time: \t" +
DoubleToString(DTTimerDiscretizeGFT.GetElapsedTime())); // a ajouter dasn la V10 + "\t" +
// IntToString(DTTimerDiscretizeGFT.GetLoop()));
AddSimpleMessage(
sTmp + " Discretize time: \t" +
DoubleToString(DTTimerDiscretize.GetElapsedTime())); // a ajouter dasn la V10 + "\t" +
// IntToString(DTTimerDiscretize.GetLoop()));
AddSimpleMessage(sTmp + " DiscretizeGFT time: \t" +
DoubleToString(DTTimerDiscretizeGFT.GetElapsedTime())); // a ajouter dasn la V10 + "\t" +
// IntToString(DTTimerDiscretizeGFT.GetLoop()));
AddSimpleMessage(sTmp + " Discretize time: \t" +
DoubleToString(DTTimerDiscretize.GetElapsedTime())); // a ajouter dasn la V10 + "\t" +
// IntToString(DTTimerDiscretize.GetLoop()));
AddSimpleMessage(sTmp + " BuildRootAttributeStats time: \t" +
DoubleToString(DTTimer_BuildRootAttributeStats.GetElapsedTime()));
AddSimpleMessage(sTmp + " SetUpInternalNode : \t" + DoubleToString(DTTimerTree1.GetElapsedTime()));
Expand Down
5 changes: 2 additions & 3 deletions src/Learning/DTForest/DTDecisionTreeGlobalCost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,8 @@ void DTDecisionTreeGlobalCost::ComputeHypotheticalAugmentedTreeCost(DTDecisionTr
else
{
// Nombre de valeurs distinctes pour l'attribut
nVariableValueNumber =
0; // NV9 cast(KWAttributeStats*,
// sourceNode->GetNodeClassStats()->LookupAttributeStats(sAttributeName))->GetDescriptiveStats()->GetValueNumber();
nVariableValueNumber = 0; // NV9 cast(KWAttributeStats*,
// sourceNode->GetNodeClassStats()->LookupAttributeStats(sAttributeName))->GetDescriptiveStats()->GetValueNumber();
}
assert(nVariableValueNumber > 0);

Expand Down
7 changes: 4 additions & 3 deletions src/Norm/base/MemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,9 +1288,10 @@ void HeapClose()

// Visual C++: supression des Warning
#ifdef __MSC__
#pragma warning(disable : 6385) // disable C6385 warning (pour un controle excessif sur pHeap->fixedSizeHeapHeadSegments
// dans HeapCheckFixedSizeHeapLecture)
#endif // __MSC__
#pragma warning( \
disable : 6385) // disable C6385 warning (pour un controle excessif sur pHeap->fixedSizeHeapHeadSegments \
// dans HeapCheckFixedSizeHeapLecture)
#endif // __MSC__

// Verification d'un segment d'un FixedSizeHeap
int HeapCheckFixedSizeHeap(MemSegment* psegSearched)
Expand Down
4 changes: 2 additions & 2 deletions src/Norm/base/SystemResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@ longint MemGetFreePhysicalMemory()
if (pagesize == -1 or pagepurge == -1 or pagefree == -1)
return 0;
return pagesize * (pagepurge + pagefree);
#else // __APPLE_
// Lecture du fichier /proc/meminfo pour extraire la memoire dispoible et la memoire en cache
#else // __APPLE_ \
// Lecture du fichier /proc/meminfo pour extraire la memoire dispoible et la memoire en cache \
// On additionne la memoire disponible et 80% de la memoire cache (borne a 2Go)
FILE* file;
const int nLineSize = 4096;
Expand Down

0 comments on commit 44abfb1

Please sign in to comment.